Explorar o código

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

--HG--
branch : minor
rude %!s(int64=14) %!d(string=hai) anos
pai
achega
6a2423f104
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  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"