Browse Source

windows.h #defines min/max by default, causing problems with std::[min, max].

--HG--
branch : minor
rude 14 years ago
parent
commit
6a2423f104
2 changed files with 2 additions and 1 deletions
  1. 1 0
      src/common/config.h
  2. 1 1
      src/modules/graphics/opengl/Font.cpp

+ 1 - 0
src/common/config.h

@@ -65,6 +65,7 @@
 #if defined(LOVE_WINDOWS)
 #	define LOVE_LEGENDARY_UTF8_ARGV_HACK
 #	define LOVE_LEGENDARY_CONSOLE_IO_HACK
+#	define NOMINMAX
 #endif
 
 #endif // LOVE_CONFIG_H

+ 1 - 1
src/modules/graphics/opengl/Font.cpp

@@ -17,7 +17,7 @@
 *    misrepresented as being the original software.
 * 3. This notice may not be removed or altered from any source distribution.
 **/
-
+#include <common/config.h>
 #include "Font.h"
 #include <font/GlyphData.h>
 #include "Quad.h"