src/SDL.c
changeset 5062 e8916fe9cfc8
parent 4472 791b3256fb22
child 5086 c2539ff054c8
     1.1 --- a/src/SDL.c	Thu Jan 20 17:33:06 2011 -0800
     1.2 +++ b/src/SDL.c	Thu Jan 20 18:04:05 2011 -0800
     1.3 @@ -39,7 +39,7 @@
     1.4  extern int SDL_TimerInit(void);
     1.5  extern void SDL_TimerQuit(void);
     1.6  #endif
     1.7 -#if defined(__WIN32__)
     1.8 +#if defined(__WINDOWS__)
     1.9  extern int SDL_HelperWindowCreate(void);
    1.10  extern int SDL_HelperWindowDestroy(void);
    1.11  #endif
    1.12 @@ -147,7 +147,7 @@
    1.13      /* Clear the error message */
    1.14      SDL_ClearError();
    1.15  
    1.16 -#if defined(__WIN32__)
    1.17 +#if defined(__WINDOWS__)
    1.18      if (SDL_HelperWindowCreate() < 0) {
    1.19          return -1;
    1.20      }
    1.21 @@ -220,7 +220,7 @@
    1.22      fflush(stdout);
    1.23  #endif
    1.24  
    1.25 -#if defined(__WIN32__)
    1.26 +#if defined(__WINDOWS__)
    1.27      SDL_HelperWindowDestroy();
    1.28  #endif
    1.29      SDL_QuitSubSystem(SDL_INIT_EVERYTHING);
    1.30 @@ -312,7 +312,7 @@
    1.31      return "RISC OS";
    1.32  #elif __SOLARIS__
    1.33      return "Solaris";
    1.34 -#elif __WIN32__
    1.35 +#elif __WINDOWS__
    1.36  #ifdef _WIN32_WCE
    1.37      return "Windows CE";
    1.38  #else
    1.39 @@ -325,7 +325,7 @@
    1.40  #endif
    1.41  }
    1.42  
    1.43 -#if defined(__WIN32__)
    1.44 +#if defined(__WINDOWS__)
    1.45  
    1.46  #if !defined(HAVE_LIBC) || (defined(__WATCOMC__) && defined(BUILD_DLL))
    1.47  /* Need to include DllMain() on Watcom C for some reason.. */
    1.48 @@ -347,6 +347,6 @@
    1.49  }
    1.50  #endif /* building DLL with Watcom C */
    1.51  
    1.52 -#endif /* __WIN32__ */
    1.53 +#endif /* __WINDOWS__ */
    1.54  
    1.55  /* vi: set ts=4 sw=4 expandtab: */