Fix glext.h regression in glfwinfo on OS X

The glfwinfo program uses symbols not provided by the glext.h header in
every development environment.

Closes #572.
This commit is contained in:
Camilla Berglund 2015-08-07 16:26:34 +02:00
parent f8395886d3
commit 8a4e939a10

View File

@ -23,9 +23,14 @@
// //
//======================================================================== //========================================================================
#define GLFW_INCLUDE_GLEXT
#include <GLFW/glfw3.h> #include <GLFW/glfw3.h>
/* HACK: Explicitly include the glext.h shipping with GLFW, as this program uses
* many modern symbols not provided by the versions in some development
* environments (for example on OS X).
*/
#include <GL/glext.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>