Fixed warning in Android build
authorSam Lantinga <slouken@libsdl.org>
Fri, 10 Feb 2017 09:41:16 -0800
changeset 108787fa08228d9e3
parent 10877 3366ca004d17
child 10879 773cbb61ad27
Fixed warning in Android build
src/video/SDL_egl.c
     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