diff src/stdlib/SDL_getenv.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 c0a74f199ecf
children bb6839704ed6
line wrap: on
line diff
--- a/src/stdlib/SDL_getenv.c	Tue Feb 21 08:34:45 2006 +0000
+++ b/src/stdlib/SDL_getenv.c	Tue Feb 21 08:46:50 2006 +0000
@@ -19,12 +19,13 @@
     Sam Lantinga
     slouken@libsdl.org
 */
+#include "SDL_config.h"
 
 #include "SDL_stdinc.h"
 
 #ifndef HAVE_GETENV
 
-#if defined(WIN32) && !defined(_WIN32_WCE)
+#if defined(__WIN32__) && !defined(_WIN32_WCE)
 
 #include "SDL_windows.h"
 
@@ -169,7 +170,7 @@
 	return value;
 }
 
-#endif /* WIN32 */
+#endif /* __WIN32__ */
 
 #endif /* !HAVE_GETENV */