src/SDL.c
changeset 7110 2a98852fd58d
parent 7037 3fedf1f25b94
child 7139 dd722e7460c5
--- a/src/SDL.c	Thu Apr 25 00:15:09 2013 -0700
+++ b/src/SDL.c	Thu Apr 25 00:26:17 2013 -0700
@@ -36,7 +36,7 @@
 extern int SDL_TimerInit(void);
 extern void SDL_TimerQuit(void);
 #endif
-#if defined(__WIN32__)
+#if SDL_VIDEO_DRIVER_WINDOWS
 extern int SDL_HelperWindowCreate(void);
 extern int SDL_HelperWindowDestroy(void);
 #endif
@@ -200,7 +200,7 @@
     /* Clear the error message */
     SDL_ClearError();
 
-#if defined(__WIN32__)
+#if SDL_VIDEO_DRIVER_WINDOWS
     if (SDL_HelperWindowCreate() < 0) {
         return -1;
     }
@@ -310,7 +310,7 @@
     SDL_bInMainQuit = SDL_TRUE;
 
     /* Quit all subsystems */
-#if defined(__WIN32__)
+#if SDL_VIDEO_DRIVER_WINDOWS
     SDL_HelperWindowDestroy();
 #endif
     SDL_QuitSubSystem(SDL_INIT_EVERYTHING);