From 88e3562ba0f481cc25c054b0e52611f2d731b837 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 27 Nov 2017 15:07:07 -0800 Subject: [PATCH] Use the included Khronos headers on Android so we can create Core OpenGL contexts when building with older SDK --- include/SDL_egl.h | 2 +- src/core/android/SDL_android.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/SDL_egl.h b/include/SDL_egl.h index e47fbe8624700..172c1621565c8 100644 --- a/include/SDL_egl.h +++ b/include/SDL_egl.h @@ -24,7 +24,7 @@ * * This is a simple file to encapsulate the EGL API headers. */ -#ifndef _MSC_VER +#if !defined(_MSC_VER) && !defined(__ANDROID__) #include #include diff --git a/src/core/android/SDL_android.c b/src/core/android/SDL_android.c index 02afdf1cc21c6..f77534ce4a1dc 100644 --- a/src/core/android/SDL_android.c +++ b/src/core/android/SDL_android.c @@ -29,7 +29,6 @@ #include "SDL_system.h" #include "SDL_android.h" -#include #include "keyinfotable.h"