Skip to content

Commit

Permalink
Fixed warning in Android build
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 10, 2017
1 parent 107c19d commit 9171f71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/video/SDL_egl.c
Expand Up @@ -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 <android/native_window.h>
#endif

#include "SDL_sysvideo.h"
#include "SDL_egl_c.h"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9171f71

Please sign in to comment.