Commit 2afc3e47 by Mumit Khan Committed by Mumit Khan

cygwin.h (CPP_PREDEFINES): Don't define __STDC__.

2000-05-04  Mumit Khan  <khan@xraylith.wisc.edu>

	* i386/cygwin.h (CPP_PREDEFINES): Don't define __STDC__. Move
	attribute macros from here ...
	(CPP_SPEC): to here.
	* i386/mingw32.h (CPP_PREDEFINES): Likewise.
	(CPP_SPEC): Likewise.
	* i386/crtdll.h (CPP_PREDEFINES): Delete attribute macros.

From-SVN: r33677
parent d34cba2b
2000-05-04 Mumit Khan <khan@xraylith.wisc.edu> 2000-05-04 Mumit Khan <khan@xraylith.wisc.edu>
* i386/cygwin.h (CPP_PREDEFINES): Don't define __STDC__. Move
attribute macros from here ...
(CPP_SPEC): to here.
* i386/mingw32.h (CPP_PREDEFINES): Likewise.
(CPP_SPEC): Likewise.
* i386/crtdll.h (CPP_PREDEFINES): Delete attribute macros.
* Makefile.in ($(HOST_PREFIX_1)gensupport.o): Add build rule. * Makefile.in ($(HOST_PREFIX_1)gensupport.o): Add build rule.
(libgcc.a): Pass LIB1ASMSRC to libgcc.mk. (libgcc.a): Pass LIB1ASMSRC to libgcc.mk.
......
...@@ -24,11 +24,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -24,11 +24,7 @@ Boston, MA 02111-1307, USA. */
#undef CPP_PREDEFINES #undef CPP_PREDEFINES
#define CPP_PREDEFINES "-D_WIN32 -DWIN32 \ #define CPP_PREDEFINES "-D_WIN32 -DWIN32 \
-D__MINGW32__=0.2 -DWINNT -D_X86_=1 -D__STDC__=1\ -D__MINGW32__=0.2 -DWINNT -D_X86_=1 \
-D__stdcall=__attribute__((__stdcall__)) \
-D_stdcall=__attribute__((__stdcall__)) \
-D__cdecl=__attribute__((__cdecl__)) \
-D__declspec(x)=__attribute__((x)) \
-Asystem(winnt)" -Asystem(winnt)"
#undef LIBGCC_SPEC #undef LIBGCC_SPEC
......
...@@ -66,10 +66,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -66,10 +66,7 @@ Boston, MA 02111-1307, USA. */
#undef CPP_PREDEFINES #undef CPP_PREDEFINES
#define CPP_PREDEFINES "-D_WIN32 \ #define CPP_PREDEFINES "-D_WIN32 \
-DWINNT -D_X86_=1 -D__STDC__=1\ -DWINNT -D_X86_=1 \
-D__stdcall=__attribute__((__stdcall__)) \
-D__cdecl=__attribute__((__cdecl__)) \
-D__declspec(x)=__attribute__((x)) \
-Asystem(winnt)" -Asystem(winnt)"
/* Normally, -lgcc is not needed since everything in it is in the DLL, but we /* Normally, -lgcc is not needed since everything in it is in the DLL, but we
...@@ -84,6 +81,11 @@ Boston, MA 02111-1307, USA. */ ...@@ -84,6 +81,11 @@ Boston, MA 02111-1307, USA. */
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC "-remap %(cpp_cpu) %{posix:-D_POSIX_SOURCE} \ #define CPP_SPEC "-remap %(cpp_cpu) %{posix:-D_POSIX_SOURCE} \
-D__stdcall=__attribute__((__stdcall__)) \
-D__cdecl=__attribute__((__cdecl__)) \
%{!ansi:-D_stdcall=__attribute__((__stdcall__)) \
-D_cdecl=__attribute__((__cdecl__))} \
-D__declspec(x)=__attribute__((x)) \
%{!mno-cygwin:-D__CYGWIN32__ -D__CYGWIN__} \ %{!mno-cygwin:-D__CYGWIN32__ -D__CYGWIN__} \
%{mno-cygwin:-iwithprefixbefore \ %{mno-cygwin:-iwithprefixbefore \
../../../../%(mingw_include_path)/include/mingw32 -D__MINGW32__=0.2}" ../../../../%(mingw_include_path)/include/mingw32 -D__MINGW32__=0.2}"
......
...@@ -32,10 +32,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -32,10 +32,6 @@ Boston, MA 02111-1307, USA. */
#undef CPP_PREDEFINES #undef CPP_PREDEFINES
#define CPP_PREDEFINES "-D_WIN32 -DWIN32 \ #define CPP_PREDEFINES "-D_WIN32 -DWIN32 \
-D__MINGW32__=0.2 -D__MSVCRT__ -DWINNT -D_X86_=1 \ -D__MINGW32__=0.2 -D__MSVCRT__ -DWINNT -D_X86_=1 \
-D__stdcall=__attribute__((__stdcall__)) \
-D_stdcall=__attribute__((__stdcall__)) \
-D__cdecl=__attribute__((__cdecl__)) \
-D__declspec(x)=__attribute__((x)) \
-Asystem(winnt)" -Asystem(winnt)"
/* Specific a different directory for the standard include files. */ /* Specific a different directory for the standard include files. */
...@@ -46,7 +42,13 @@ Boston, MA 02111-1307, USA. */ ...@@ -46,7 +42,13 @@ Boston, MA 02111-1307, USA. */
#undef CPP_SPEC #undef CPP_SPEC
#define CPP_SPEC \ #define CPP_SPEC \
"-remap %(cpp_cpu) %{posix:-D_POSIX_SOURCE} %{mthreads:-D_MT}" "-remap %(cpp_cpu) %{posix:-D_POSIX_SOURCE} %{mthreads:-D_MT} \
-D__stdcall=__attribute__((__stdcall__)) \
-D__cdecl=__attribute__((__cdecl__)) \
%{!ansi:-D_stdcall=__attribute__((__stdcall__)) \
-D_cdecl=__attribute__((__cdecl__))} \
-D__declspec(x)=__attribute__((x))"
/* For Windows applications, include more libraries, but always include /* For Windows applications, include more libraries, but always include
kernel32. */ kernel32. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment