Use the included Khronos headers on Android so we can create Core OpenGL contexts when building with older SDK
authorSam Lantinga <slouken@libsdl.org>
Mon, 27 Nov 2017 15:07:07 -0800
changeset 1171535da714ed287
parent 11714 f10f06ee8207
child 11716 93edd752e966
Use the included Khronos headers on Android so we can create Core OpenGL contexts when building with older SDK
include/SDL_egl.h
src/core/android/SDL_android.c
     1.1 --- a/include/SDL_egl.h	Fri Nov 24 12:03:28 2017 -0800
     1.2 +++ b/include/SDL_egl.h	Mon Nov 27 15:07:07 2017 -0800
     1.3 @@ -24,7 +24,7 @@
     1.4   *
     1.5   *  This is a simple file to encapsulate the EGL API headers.
     1.6   */
     1.7 -#ifndef _MSC_VER
     1.8 +#if !defined(_MSC_VER) && !defined(__ANDROID__)
     1.9  
    1.10  #include <EGL/egl.h>
    1.11  #include <EGL/eglext.h>
     2.1 --- a/src/core/android/SDL_android.c	Fri Nov 24 12:03:28 2017 -0800
     2.2 +++ b/src/core/android/SDL_android.c	Mon Nov 27 15:07:07 2017 -0800
     2.3 @@ -29,7 +29,6 @@
     2.4  
     2.5  #include "SDL_system.h"
     2.6  #include "SDL_android.h"
     2.7 -#include <EGL/egl.h>
     2.8  
     2.9  #include "keyinfotable.h"
    2.10