History

win32: _mingw.h: do not undef NULL

Not wise if stddef.h was already included. This is related to commit 3aa26a794e24a298493a2bc9d70fbd9aebf6437a Instead hack stddef.h to have identical definition and thus avoid the issue mentionned there.

grischka committed 13 years ago

Commit b89793d1 parent 6b6eea62 files · +1 −2Browse files

Unified · Split

2 files
  1. include/stddef.h +1 −1
  2. win32/include/_mingw.h +0 −1
include/stddef.h+1−1
@@ -20,7 +20,7 @@ typedef unsigned int uint32_t; · 19 unmodified lines
20typedef unsigned long long int uint64_t;20typedef unsigned long long int uint64_t;
21#endif21#endif
22 22
23#define NULL ((void *)0)23#define NULL ((void*)0)
24#define offsetof(type, field) ((size_t)&((type *)0)->field)24#define offsetof(type, field) ((size_t)&((type *)0)->field)
25 25
26void *alloca(size_t size);26void *alloca(size_t size);
win32/include/_mingw.h+0−1
@@ -19,7 +19,6 @@ · 18 unmodified lines
19#define __MINGW_H19#define __MINGW_H
20 20
21/* some winapi files define these before including _mingw.h --> */21/* some winapi files define these before including _mingw.h --> */
22#undef NULL
23#undef __cdecl22#undef __cdecl
24#undef _X86_23#undef _X86_
25#undef WIN3224#undef WIN32

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t