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 6088eedb8e10ac22
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
     1.1 --- a/src/video/uikit/SDL_uikitopengles.m	Thu Nov 17 00:43:44 2011 -0500
     1.2 +++ b/src/video/uikit/SDL_uikitopengles.m	Sat Nov 19 19:13:55 2011 -0500
     1.3 @@ -79,7 +79,7 @@
     1.4  
     1.5  void UIKit_GL_SwapWindow(_THIS, SDL_Window * window)
     1.6  {
     1.7 -#ifdef SDL_POWER_UIKIT
     1.8 +#if SDL_POWER_UIKIT
     1.9      // Check once a frame to see if we should turn off the battery monitor.
    1.10      SDL_UIKit_UpdateBatteryMonitoring();
    1.11  #endif