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
2020 typedef unsigned long long int uint64_t;
2121 #endif
2222
23−#define NULL ((void *)0)
23+#define NULL ((void*)0)
2424 #define offsetof(type, field) ((size_t)&((type *)0)->field)
2525
2626 void *alloca(size_t size);
win32/include/_mingw.h+0−1
@@ -19,7 +19,6 @@ · 18 unmodified lines
1919 #define __MINGW_H
2020
2121 /* some winapi files define these before including _mingw.h --> */
22−#undef NULL
2322 #undef __cdecl
2423 #undef _X86_
2524 #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