/*****************************************************************************\ * * * WinGnuc.h - Macros for GNU C Compiler to include Win32 SDK * * * * * * Copyright (c) 1995-1997 Rainer Schnitker. All rights reserved. * * * \*****************************************************************************/ #ifndef _WINGNUC_H #define _WINGNUC_H #ifdef __GNUC__ /* not all headers are patched, cc1 is ok, cc1plus not */ #define WIN32_LEAN_AND_MEAN /* do not include all headers */ #define _STDCALL_SUPPORTED /* GNU C supports __stdcall */ #define NONAMELESSUNION /* union should have a name */ #define __cdecl /* Microsoft extentions */ #define _cdecl #define __unaligned #define __export #define __stdcall __attribute__((stdcall)) #define __declspec(import) #ifndef WIN32 #define WIN32 100 #endif #ifndef _WIN32 #define _WIN32 #endif #ifdef i386 /* define target */ #define _X86_ #define I386_HOST 1 #ifndef _M_IX86 #define _M_IX86 300 #endif #endif #ifndef _WCHAR_T /* !EMX wchar_t */ #define _WCHAR_T #define _WCHAR_T_DEFINED /* SDK wchar_t */ typedef unsigned short wchar_t; #else /* _WCHAR_T */ #ifndef _WCHAR_T_DEFINED #define _WCHAR_T_DEFINED #endif #endif /* _WCHAR_T */ #ifndef _SIZE_T /* !EMX Symbol */ #define _SIZE_T #define _SIZE_T_DEFINED /* SDK Symbol */ typedef unsigned long size_t; #else /* _SIZE_T */ #ifndef _SIZE_T_DEFINED #define _SIZE_T_DEFINED #endif #endif /* define missing structured exception handlers */ struct _EXCEPTION_RECORD; struct _CONTEXT; struct _RTL_CRITICAL_SECTION; struct tagCREATESTRUCTA; struct tagCREATESTRUCTW; #endif /* __GNUC__ */ #endif /* _WINGNUC_H */