Fixed precompiled headers on MacOS X
authorSam Lantinga <slouken@libsdl.org>
Sat, 13 Apr 2002 20:33:15 +0000
changeset 346 a18ea34d9efe
parent 345 05b97424225f
child 347 1b89c9ca9246
Fixed precompiled headers on MacOS X
include/begin_code.h
--- a/include/begin_code.h	Sat Apr 13 18:08:45 2002 +0000
+++ b/include/begin_code.h	Sat Apr 13 20:33:15 2002 +0000
@@ -125,6 +125,7 @@
 #endif
 
 /* Apparently this is needed by several Windows compilers */
+#if !defined(__MACH__)
 #ifndef NULL
 #ifdef __cplusplus
 #define NULL 0
@@ -132,3 +133,4 @@
 #define NULL ((void *)0)
 #endif
 #endif /* NULL */
+#endif /* ! MacOS X - breaks precompiled headers */