src/video/SDL_egl.c
changeset 10878 7fa08228d9e3
parent 10741 a32fd6b7412b
child 11175 cbc6a8a5b701
     1.1 --- a/src/video/SDL_egl.c	Thu Feb 09 06:01:14 2017 -0800
     1.2 +++ b/src/video/SDL_egl.c	Fri Feb 10 09:41:16 2017 -0800
     1.3 @@ -25,6 +25,9 @@
     1.4  #if SDL_VIDEO_DRIVER_WINDOWS || SDL_VIDEO_DRIVER_WINRT
     1.5  #include "../core/windows/SDL_windows.h"
     1.6  #endif
     1.7 +#if SDL_VIDEO_DRIVER_ANDROID
     1.8 +#include <android/native_window.h>
     1.9 +#endif
    1.10  
    1.11  #include "SDL_sysvideo.h"
    1.12  #include "SDL_egl_c.h"
    1.13 @@ -642,7 +645,7 @@
    1.14          return EGL_NO_SURFACE;
    1.15      }
    1.16      
    1.17 -#if __ANDROID__
    1.18 +#if SDL_VIDEO_DRIVER_ANDROID
    1.19      {
    1.20          /* Android docs recommend doing this!
    1.21           * Ref: http://developer.android.com/reference/android/app/NativeActivity.html