Skip to content

Commit

Permalink
Added SDL_USE_BUILTIN_OPENGL_DEFINITIONS to avoid system OpenGL headers
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 22, 2021
1 parent b360965 commit 8f58bb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions include/SDL_egl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -1676,5 +1676,4 @@ EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void);

#endif /* __eglext_h_ */


#endif /* _MSC_VER */
2 changes: 1 addition & 1 deletion include/SDL_opengles2.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 8f58bb9

Please sign in to comment.