Mercurial > sdl-ios-xcode
diff src/SDL.c @ 5062:e8916fe9cfc8
Fixed bug #925
Changed "win32" to "windows"
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 20 Jan 2011 18:04:05 -0800 |
parents | 791b3256fb22 |
children | c2539ff054c8 |
line wrap: on
line diff
--- a/src/SDL.c Thu Jan 20 17:33:06 2011 -0800 +++ b/src/SDL.c Thu Jan 20 18:04:05 2011 -0800 @@ -39,7 +39,7 @@ extern int SDL_TimerInit(void); extern void SDL_TimerQuit(void); #endif -#if defined(__WIN32__) +#if defined(__WINDOWS__) extern int SDL_HelperWindowCreate(void); extern int SDL_HelperWindowDestroy(void); #endif @@ -147,7 +147,7 @@ /* Clear the error message */ SDL_ClearError(); -#if defined(__WIN32__) +#if defined(__WINDOWS__) if (SDL_HelperWindowCreate() < 0) { return -1; } @@ -220,7 +220,7 @@ fflush(stdout); #endif -#if defined(__WIN32__) +#if defined(__WINDOWS__) SDL_HelperWindowDestroy(); #endif SDL_QuitSubSystem(SDL_INIT_EVERYTHING); @@ -312,7 +312,7 @@ return "RISC OS"; #elif __SOLARIS__ return "Solaris"; -#elif __WIN32__ +#elif __WINDOWS__ #ifdef _WIN32_WCE return "Windows CE"; #else @@ -325,7 +325,7 @@ #endif } -#if defined(__WIN32__) +#if defined(__WINDOWS__) #if !defined(HAVE_LIBC) || (defined(__WATCOMC__) && defined(BUILD_DLL)) /* Need to include DllMain() on Watcom C for some reason.. */ @@ -347,6 +347,6 @@ } #endif /* building DLL with Watcom C */ -#endif /* __WIN32__ */ +#endif /* __WINDOWS__ */ /* vi: set ts=4 sw=4 expandtab: */