From 7a16e4cb49f57688d266dddb9c5e201353e7721e Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Tue, 29 Jan 2013 13:01:34 -0400 Subject: [PATCH] Made Visual Studio play nice with the C++ STL min/max functions in the new shader code --- src/modules/graphics/opengl/OpenGL.cpp | 7 +++++-- src/modules/graphics/opengl/Shader.cpp | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/modules/graphics/opengl/OpenGL.cpp b/src/modules/graphics/opengl/OpenGL.cpp index b9120085a..c2a93babc 100644 --- a/src/modules/graphics/opengl/OpenGL.cpp +++ b/src/modules/graphics/opengl/OpenGL.cpp @@ -18,10 +18,13 @@ * 3. This notice may not be removed or altered from any source distribution. **/ +#include "common/config.h" +#include "common/Exception.h" + +#include "OpenGL.h" + #include #include -#include "OpenGL.h" -#include "common/Exception.h" namespace love { diff --git a/src/modules/graphics/opengl/Shader.cpp b/src/modules/graphics/opengl/Shader.cpp index 061c7295e..88d1987bb 100644 --- a/src/modules/graphics/opengl/Shader.cpp +++ b/src/modules/graphics/opengl/Shader.cpp @@ -18,11 +18,13 @@ * 3. This notice may not be removed or altered from any source distribution. **/ -#include +#include "common/config.h" #include "Shader.h" #include "Graphics.h" +#include + namespace love { namespace graphics