include/begin_code.h
changeset 346 a18ea34d9efe
parent 337 9154ec9ca3d2
child 636 d9c2ab142f2f
equal deleted inserted replaced
345:05b97424225f 346:a18ea34d9efe
   123 #ifndef SDL_INLINE_OKAY
   123 #ifndef SDL_INLINE_OKAY
   124 #define __inline__
   124 #define __inline__
   125 #endif
   125 #endif
   126 
   126 
   127 /* Apparently this is needed by several Windows compilers */
   127 /* Apparently this is needed by several Windows compilers */
       
   128 #if !defined(__MACH__)
   128 #ifndef NULL
   129 #ifndef NULL
   129 #ifdef __cplusplus
   130 #ifdef __cplusplus
   130 #define NULL 0
   131 #define NULL 0
   131 #else
   132 #else
   132 #define NULL ((void *)0)
   133 #define NULL ((void *)0)
   133 #endif
   134 #endif
   134 #endif /* NULL */
   135 #endif /* NULL */
       
   136 #endif /* ! MacOS X - breaks precompiled headers */