diff options
| author | grischka <grischka> | 2010-01-26 22:18:03 +0100 |
|---|---|---|
| committer | grischka <grischka> | 2010-01-26 22:18:03 +0100 |
| commit | 3aa26a794e24a298493a2bc9d70fbd9aebf6437a (patch) | |
| tree | a865f3507ff79df9025660e93eef13045324941a | |
| parent | a40814cc9d7abf166ac972b515c954daf0f30d28 (diff) | |
| download | tinycc-3aa26a794e24a298493a2bc9d70fbd9aebf6437a.tar.gz tinycc-3aa26a794e24a298493a2bc9d70fbd9aebf6437a.tar.bz2 | |
win32: adjust for mingw32 winapi packages
Note: the files in tcc/win32/include/winapi are now from the
mingw-w64 project, however with this fix using mingw32 winapi
should still work.
| -rw-r--r-- | win32/include/_mingw.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/win32/include/_mingw.h b/win32/include/_mingw.h index d876625..7a1891c 100644 --- a/win32/include/_mingw.h +++ b/win32/include/_mingw.h @@ -18,6 +18,13 @@ #ifndef __MINGW_H #define __MINGW_H +/* some winapi files define these before including _mingw.h --> */ +#undef NULL +#undef __cdecl +#undef _X86_ +#undef WIN32 +/* <-- */ + #include <stddef.h> #include <stdarg.h> @@ -111,6 +118,10 @@ typedef struct threadmbcinfostruct *pthreadmbcinfo; typedef struct localeinfo_struct _locale_tstruct,*_locale_t; /* for winapi */ +#define _ANONYMOUS_UNION +#define _ANONYMOUS_STRUCT +#define DECLSPEC_NORETURN +#define DECLARE_STDCALL_P(type) __stdcall type #define WIN32_LEAN_AND_MEAN #define NOSERVICE 1 #define NOMCX 1 |
