Skip to content

Commit

Permalink
WINDOWS is defined in e_os.h. The problem was WIN32 (the new egcs use…
Browse files Browse the repository at this point in the history
…s _WIN32).
  • Loading branch information
Ulf Möller committed Jan 20, 2000
1 parent 6481f3d commit b838465
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Configure
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ my %table=(
# CygWin32
# (Note: the real CFLAGS for Windows builds are defined by util/mk1mf.pl
# and its library files in util/pl/*)
"CygWin32", "gcc:-DTERMIOS -DL_ENDIAN -DWINDOWS -fomit-frame-pointer -O3 -m486 -Wall::::BN_LLONG $x86_gcc_des $x86_gcc_opts:",
"Mingw32", "gcc:-DL_ENDIAN -DWINDOWS -fomit-frame-pointer -O3 -m486 -Wall::::BN_LLONG $x86_gcc_des $x86_gcc_opts:",
"CygWin32", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::::BN_LLONG $x86_gcc_des $x86_gcc_opts:",
"Mingw32", "gcc:-DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::::BN_LLONG $x86_gcc_des $x86_gcc_opts:",

# Ultrix from Bernhard Simon <simon@zid.tuwien.ac.at>
"ultrix-cc","cc:-std1 -O -Olimit 1000 -DL_ENDIAN::(unknown)::::::",
Expand Down
4 changes: 4 additions & 0 deletions e_os.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ extern "C" {
# define MS_STATIC
#endif

#if defined(_WIN32) && !defined(WIN32)
# define WIN32
#endif

#if defined(WIN32) || defined(WIN16)
# ifndef WINDOWS
# define WINDOWS
Expand Down
4 changes: 2 additions & 2 deletions util/pl/Mingw32.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

$cc='gcc';
if ($debug)
{ $cflags="-DL_ENDIAN -DWINDOWS -g2 -ggdb"; }
{ $cflags="-DL_ENDIAN -g2 -ggdb"; }
else
{ $cflags="-DL_ENDIAN -DWINDOWS -fomit-frame-pointer -O3 -m486 -Wall"; }
{ $cflags="-DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall"; }

$obj='.o';
$ofile='-o ';
Expand Down
4 changes: 2 additions & 2 deletions util/pl/Mingw32f.pl
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

$cc='gcc';
if ($debug)
{ $cflags="-DWINDOWS -g2 -ggdb"; }
{ $cflags="-g2 -ggdb"; }
else
{ $cflags="-DWINDOWS -O3 -fomit-frame-pointer"; }
{ $cflags="-O3 -fomit-frame-pointer"; }

$obj='.o';
$ofile='-o ';
Expand Down

0 comments on commit b838465

Please sign in to comment.