Added SDL_USE_BUILTIN_OPENGL_DEFINITIONS to avoid system OpenGL headers

This commit is contained in:
Sam Lantinga 2021-10-21 20:48:08 -07:00
parent b360965d0d
commit 8f58bb9cf8
2 changed files with 2 additions and 3 deletions

View File

@ -24,7 +24,7 @@
*
* This is a simple file to encapsulate the EGL API headers.
*/
#if !defined(_MSC_VER) && !defined(__ANDROID__)
#if !defined(_MSC_VER) && !defined(__ANDROID__) && !defined(SDL_USE_BUILTIN_OPENGL_DEFINITIONS)
#if defined(__vita__) || defined(__psp2__)
#include <psp2/types.h>
@ -1676,5 +1676,4 @@ EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void);
#endif /* __eglext_h_ */
#endif /* _MSC_VER */

View File

@ -26,7 +26,7 @@
*/
#include "SDL_config.h"
#ifndef _MSC_VER
#if !defined(_MSC_VER) && !defined(SDL_USE_BUILTIN_OPENGL_DEFINITIONS)
#ifdef __IPHONEOS__
#include <OpenGLES/ES2/gl.h>