diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-09-12 22:00:02 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-09-12 22:00:02 +0000 |
commit | 2702ce633d42e04bb266f4f7d4c1f4a22ad05e48 (patch) | |
tree | 620093efedd3d5615e4bb6292523986cf24582b5 /gcc/config/i386/win-nt.h | |
parent | 70beaae6c559277452944f13861c8c0facc9a57c (diff) | |
download | ppe42-gcc-2702ce633d42e04bb266f4f7d4c1f4a22ad05e48.tar.gz ppe42-gcc-2702ce633d42e04bb266f4f7d4c1f4a22ad05e48.zip |
Added -D_cdecl=__attribute__((__cdecl__)).
Change LIB_SPEC to be compatible with Gnu ld for NT.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10334 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/win-nt.h')
-rw-r--r-- | gcc/config/i386/win-nt.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/config/i386/win-nt.h b/gcc/config/i386/win-nt.h index d630a4f164a..56cc1defb2f 100644 --- a/gcc/config/i386/win-nt.h +++ b/gcc/config/i386/win-nt.h @@ -31,6 +31,7 @@ Boston, MA 02111-1307, USA. */ -DWINNT -D_M_IX86=300 -D_X86_=1 -D__STDC__=0 -DALMOST_STDC -D_MSC_VER=800 \ -D__stdcall=__attribute__((__stdcall__)) \ -D__cdecl=__attribute__((__cdecl__)) \ + -D_cdecl=__attribute__((__cdecl__)) \ -Asystem(unix) -Asystem(winnt) -Acpu(i386) -Amachine(i386)" #define SIZE_TYPE "unsigned int" @@ -140,12 +141,11 @@ while (0) linker the proper switches and libraries to build a graphical program */ #undef LIB_SPEC -#define LIB_SPEC "%{mwindows:-subsystem:windows -entry:WinMainCRTStartup \ - USER32.LIB GDI32.LIB COMDLG32.LIB WINSPOOL.LIB} \ - %{!mwindows:-subsystem:console -entry:mainCRTStartup} \ - %{mcrtmt:OLDNAMES.LIB LIBCMT.LIB KERNEL32.LIB ADVAPI32.LIB} \ - %{!mcrtmt:OLDNAMES.LIB LIBC.LIB KERNEL32.LIB ADVAPI32.LIB} \ - %{g:-debugtype:coff -debug:full} \ +#define LIB_SPEC "%{mwindows:-subsystem windows -e _WinMainCRTStartup \ + USER32.LIB%s GDI32.LIB%s COMDLG32.LIB%s WINSPOOL.LIB%s} \ + %{!mwindows:-subsystem console -e _mainCRTStartup} \ + %{mcrtmt:LIBCMT.LIB%s KERNEL32.LIB%s ADVAPI32.LIB%s} \ + %{!mcrtmt:LIBC.LIB%s KERNEL32.LIB%s ADVAPI32.LIB%s} \ %{v}" #include "winnt/winnt.h" |