Hey, if you compile SDL without SDL_POWER_UIKIT support you won’t be
able to link correctly, as SDL_UIKit_UpdateBatteryMonitoring will be
undefined.
The fix should be just to modify the following #ifdef to #if as
SDL_POWER_UIKIT is always defined in SDL_config
thanks
Vittorio
diff -r 9738f2a8eee4 src/video/uikit/SDL_uikitopengles.m
— a/src/video/uikit/SDL_uikitopengles.m Wed Nov 09 02:35:49 2011 -0500
+++ b/src/video/uikit/SDL_uikitopengles.m Sat Nov 19 15:43:20 2011 +0100
@@ -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