Fixed WIN32 build breakage.

GLFW tries to avoid including windows.h, but by hijacking
macro definitions provided by windows.h GLFW actually
further pollutes the global namespace.
This commit is contained in:
David G Yu 2013-02-05 17:05:59 -08:00
parent 91fddab7ef
commit 88679ce187

View File

@ -60,6 +60,11 @@
#else
#include <stdlib.h>
#include <GL/glew.h>
#if defined(_WIN32)
// XXX Must include windows.h here or GLFW pollutes the global namespace
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#endif
#if defined(GLFW_VERSION_3)