include/SDL_system.h
changeset 6683 b1124b32b07d
parent 6654 2ecfb25be1e2
child 6885 700f1b25f77f
child 8388 1e6ddf458e65
--- a/include/SDL_system.h	Mon Nov 19 00:39:19 2012 +0300
+++ b/include/SDL_system.h	Thu Nov 22 11:55:11 2012 -0800
@@ -30,7 +30,7 @@
 
 #include "SDL_stdinc.h"
 
-#if __IPHONEOS__
+#if defined(__IPHONEOS__) && __IPHONEOS__
 #include "SDL_video.h"
 #include "SDL_keyboard.h"
 #endif
@@ -44,7 +44,7 @@
 #endif
 
 /* Platform specific functions for iOS */
-#if __IPHONEOS__
+#if defined(__IPHONEOS__) && __IPHONEOS__
 
 extern DECLSPEC int SDLCALL SDL_iPhoneSetAnimationCallback(SDL_Window * window, int interval, void (*callback)(void*), void *callbackParam);
 extern DECLSPEC void SDLCALL SDL_iPhoneSetEventPump(SDL_bool enabled);
@@ -53,7 +53,7 @@
 
 
 /* Platform specific functions for Android */
-#if __ANDROID__
+#if defined(__ANDROID__) && __ANDROID__
 
 /* Get the JNI environment for the current thread
    This returns JNIEnv*, but the prototype is void* so we don't need jni.h