comparison 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
comparison
equal deleted inserted replaced
1401:1819fd069e89 1402:d910939febfa
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 18
19 Sam Lantinga 19 Sam Lantinga
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 #include "SDL_config.h"
22 23
23 #include "SDL_stdinc.h" 24 #include "SDL_stdinc.h"
24 25
25 #ifndef HAVE_GETENV 26 #ifndef HAVE_GETENV
26 27
27 #if defined(WIN32) && !defined(_WIN32_WCE) 28 #if defined(__WIN32__) && !defined(_WIN32_WCE)
28 29
29 #include "SDL_windows.h" 30 #include "SDL_windows.h"
30 31
31 /* Note this isn't thread-safe! */ 32 /* Note this isn't thread-safe! */
32 33
167 } 168 }
168 } 169 }
169 return value; 170 return value;
170 } 171 }
171 172
172 #endif /* WIN32 */ 173 #endif /* __WIN32__ */
173 174
174 #endif /* !HAVE_GETENV */ 175 #endif /* !HAVE_GETENV */
175 176
176 #ifdef TEST_MAIN 177 #ifdef TEST_MAIN
177 #include <stdio.h> 178 #include <stdio.h>