mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-28 14:21:07 +00:00
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:
parent
91fddab7ef
commit
88679ce187
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user