diff src/SDL.c @ 1402:d910939febfa

Use consistent identifiers for the various platforms we support. Make sure every source file includes SDL_config.h, so the proper system headers are chosen.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Feb 2006 08:46:50 +0000
parents 19418e4422cb
children bb6839704ed6
line wrap: on
line diff
--- a/src/SDL.c	Tue Feb 21 08:34:45 2006 +0000
+++ b/src/SDL.c	Tue Feb 21 08:46:50 2006 +0000
@@ -19,6 +19,7 @@
     Sam Lantinga
     slouken@libsdl.org
 */
+#include "SDL_config.h"
 
 /* Initialization code for SDL */
 
@@ -322,7 +323,7 @@
 }
 #endif /* __WATCOMC__ */
 
-#elif defined(_WIN32)
+#elif defined(__WIN32__)
 
 #if !defined(HAVE_LIBC) || defined(_WIN32_WCE) || (defined(__WATCOMC__) && defined(BUILD_DLL))
 /* Need to include DllMain() on Windows CE and Watcom C for some reason.. */
@@ -343,4 +344,4 @@
 }
 #endif /* _WIN32_WCE and building DLL with Watcom C */
 
-#endif /* OS/2 elif _WIN32 */
+#endif /* OS/2 elif __WIN32__ */