OpenGL.hpp now includes windows.h only with VC++

This commit is contained in:
Laurent Gomila 2011-09-02 19:26:49 +02:00
parent 18cebde155
commit 7f390367f1
2 changed files with 6 additions and 1 deletions

View File

@ -38,7 +38,11 @@
////////////////////////////////////////////////////////////
#if defined(SFML_SYSTEM_WINDOWS)
// The Visual C++ version of gl.h uses WINGDIAPI and APIENTRY but doesn't define them
#ifdef _MSC_VER
#include <windows.h>
#endif
#include <GL/gl.h>
#include <GL/glu.h>

View File

@ -30,6 +30,7 @@
////////////////////////////////////////////////////////////
#include <SFML/Window/GlContext.hpp>
#include <SFML/OpenGL.hpp>
#include <windows.h>
namespace sf