comparison 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
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 /* Initialization code for SDL */ 24 /* Initialization code for SDL */
24 25
25 #include "SDL.h" 26 #include "SDL.h"
26 #include "SDL_fatal.h" 27 #include "SDL_fatal.h"
320 return 1; 321 return 1;
321 } 322 }
322 } 323 }
323 #endif /* __WATCOMC__ */ 324 #endif /* __WATCOMC__ */
324 325
325 #elif defined(_WIN32) 326 #elif defined(__WIN32__)
326 327
327 #if !defined(HAVE_LIBC) || defined(_WIN32_WCE) || (defined(__WATCOMC__) && defined(BUILD_DLL)) 328 #if !defined(HAVE_LIBC) || defined(_WIN32_WCE) || (defined(__WATCOMC__) && defined(BUILD_DLL))
328 /* Need to include DllMain() on Windows CE and Watcom C for some reason.. */ 329 /* Need to include DllMain() on Windows CE and Watcom C for some reason.. */
329 #include "SDL_windows.h" 330 #include "SDL_windows.h"
330 331
341 } 342 }
342 return TRUE; 343 return TRUE;
343 } 344 }
344 #endif /* _WIN32_WCE and building DLL with Watcom C */ 345 #endif /* _WIN32_WCE and building DLL with Watcom C */
345 346
346 #endif /* OS/2 elif _WIN32 */ 347 #endif /* OS/2 elif __WIN32__ */