include/SDL_system.h
changeset 6683 b1124b32b07d
parent 6654 2ecfb25be1e2
child 6885 700f1b25f77f
child 8388 1e6ddf458e65
     1.1 --- a/include/SDL_system.h	Mon Nov 19 00:39:19 2012 +0300
     1.2 +++ b/include/SDL_system.h	Thu Nov 22 11:55:11 2012 -0800
     1.3 @@ -30,7 +30,7 @@
     1.4  
     1.5  #include "SDL_stdinc.h"
     1.6  
     1.7 -#if __IPHONEOS__
     1.8 +#if defined(__IPHONEOS__) && __IPHONEOS__
     1.9  #include "SDL_video.h"
    1.10  #include "SDL_keyboard.h"
    1.11  #endif
    1.12 @@ -44,7 +44,7 @@
    1.13  #endif
    1.14  
    1.15  /* Platform specific functions for iOS */
    1.16 -#if __IPHONEOS__
    1.17 +#if defined(__IPHONEOS__) && __IPHONEOS__
    1.18  
    1.19  extern DECLSPEC int SDLCALL SDL_iPhoneSetAnimationCallback(SDL_Window * window, int interval, void (*callback)(void*), void *callbackParam);
    1.20  extern DECLSPEC void SDLCALL SDL_iPhoneSetEventPump(SDL_bool enabled);
    1.21 @@ -53,7 +53,7 @@
    1.22  
    1.23  
    1.24  /* Platform specific functions for Android */
    1.25 -#if __ANDROID__
    1.26 +#if defined(__ANDROID__) && __ANDROID__
    1.27  
    1.28  /* Get the JNI environment for the current thread
    1.29     This returns JNIEnv*, but the prototype is void* so we don't need jni.h