1
0
mirror of https://github.com/mirror/tinycc.git synced 2025-02-02 06:20:10 +08:00

win32: _mingw.h: do not undef NULL

Not wise if stddef.h was already included. This is related to commit

    3aa26a794e

Instead hack stddef.h to have identical definition and thus
avoid the issue mentionned there.
This commit is contained in:
grischka 2013-01-24 19:49:58 +01:00
parent 6b6eea60f3
commit b89793d10a
2 changed files with 1 additions and 2 deletions
include
win32/include

View File

@ -20,7 +20,7 @@ typedef unsigned int uint32_t;
typedef unsigned long long int uint64_t; typedef unsigned long long int uint64_t;
#endif #endif
#define NULL ((void *)0) #define NULL ((void*)0)
#define offsetof(type, field) ((size_t)&((type *)0)->field) #define offsetof(type, field) ((size_t)&((type *)0)->field)
void *alloca(size_t size); void *alloca(size_t size);

View File

@ -19,7 +19,6 @@
#define __MINGW_H #define __MINGW_H
/* some winapi files define these before including _mingw.h --> */ /* some winapi files define these before including _mingw.h --> */
#undef NULL
#undef __cdecl #undef __cdecl
#undef _X86_ #undef _X86_
#undef WIN32 #undef WIN32