From 9171f71dbe52ca59598c80436e9c1f1eaffbd2d0 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 10 Feb 2017 09:41:16 -0800 Subject: [PATCH] Fixed warning in Android build --- src/video/SDL_egl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c index 21276f1a2f7ac..c7f76e68b50c5 100644 --- a/src/video/SDL_egl.c +++ b/src/video/SDL_egl.c @@ -25,6 +25,9 @@ #if SDL_VIDEO_DRIVER_WINDOWS || SDL_VIDEO_DRIVER_WINRT #include "../core/windows/SDL_windows.h" #endif +#if SDL_VIDEO_DRIVER_ANDROID +#include +#endif #include "SDL_sysvideo.h" #include "SDL_egl_c.h" @@ -642,7 +645,7 @@ SDL_EGL_CreateSurface(_THIS, NativeWindowType nw) return EGL_NO_SURFACE; } -#if __ANDROID__ +#if SDL_VIDEO_DRIVER_ANDROID { /* Android docs recommend doing this! * Ref: http://developer.android.com/reference/android/app/NativeActivity.html