Commit 88e3562ba0f481cc25c054b0e52611f2d731b837

Sam Lantinga 2017-11-27T15:07:07

Use the included Khronos headers on Android so we can create Core OpenGL contexts when building with older SDK

diff --git a/include/SDL_egl.h b/include/SDL_egl.h
index e47fbe8..172c162 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 <EGL/egl.h>
 #include <EGL/eglext.h>
diff --git a/src/core/android/SDL_android.c b/src/core/android/SDL_android.c
index 02afdf1..f77534c 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 <EGL/egl.h>
 
 #include "keyinfotable.h"