Fix iOS build when SDL_POWER_UIKIT isn't defined.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 19 Nov 2011 19:13:55 -0500
changeset 6088 eedb8e10ac22
parent 6086 45d22791e77c
child 6089 30d57832687a
Fix iOS build when SDL_POWER_UIKIT isn't defined. Thanks to Vittorio Giovara for the patch!
src/video/uikit/SDL_uikitopengles.m
--- a/src/video/uikit/SDL_uikitopengles.m	Thu Nov 17 00:43:44 2011 -0500
+++ b/src/video/uikit/SDL_uikitopengles.m	Sat Nov 19 19:13:55 2011 -0500
@@ -79,7 +79,7 @@
 
 void UIKit_GL_SwapWindow(_THIS, SDL_Window * window)
 {
-#ifdef SDL_POWER_UIKIT
+#if SDL_POWER_UIKIT
     // Check once a frame to see if we should turn off the battery monitor.
     SDL_UIKit_UpdateBatteryMonitoring();
 #endif