From 697f4de80aacc81dfcd3ad5df9ebd658c360fce3 Mon Sep 17 00:00:00 2001 From: rude Date: Sat, 12 Jan 2013 11:28:32 +0100 Subject: [PATCH] Fix compilation issue in MSVC2012. --- src/modules/graphics/opengl/VertexBuffer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/graphics/opengl/VertexBuffer.cpp b/src/modules/graphics/opengl/VertexBuffer.cpp index 8837ea5f5..d3ffc6172 100644 --- a/src/modules/graphics/opengl/VertexBuffer.cpp +++ b/src/modules/graphics/opengl/VertexBuffer.cpp @@ -28,6 +28,11 @@ #include #include +// Conflicts with std::numeric_limits::max() (Windows). +#ifdef max +# undef max +#endif + namespace love { namespace graphics