From 7f81c3b073f7500ce85fea60bb4ccd9e8bc912e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 5 May 2014 12:30:32 +0200 Subject: [PATCH] configure: Use the same includes for GL that we would use later in the code for checking if GLES2 and OpenGL headers can both be included --- configure.ac | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 6f2c230a04..7315cca42e 100644 --- a/configure.ac +++ b/configure.ac @@ -815,14 +815,23 @@ fi dnl check if we can include both GL and GLES2 at the same time if test "x$HAVE_GL" = "xyes" -a "x$HAVE_GLES2" = "xyes"; then GL_INCLUDES=" -# include -# include +#ifndef GL_GLEXT_PROTOTYPES +#define GL_GLEXT_PROTOTYPES 1 +#endif +# ifdef __APPLE__ +# include +# include +# else +# include +# include +# endif # if __APPLE__ # include # include +# include # else -# include # include +# include # if __WIN32__ || _WIN32 # include # endif