From 44004d8bbc4f7999925c5d41ed6e356643aa1e06 Mon Sep 17 00:00:00 2001 From: Kevin Doyon Date: Fri, 19 Apr 2013 14:40:34 -0400 Subject: [PATCH] Fix SDL2 compile-errors, made it work on Win64 .. when compiled with MSVC2012 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bb8b292..1b1a40e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -213,6 +213,7 @@ elseif(MSVC) add_definitions(/wd4714) # 'function' marked as __forceinline not inlined add_definitions(/wd4996) # 'function': was declared deprecated add_definitions(/wd4068) # unknown pragma + add_definitions(-D_ALLOW_KEYWORD_MACROS) # because of the "#define private public" and "#define protected public" in TypeInfo.cpp set(CMAKE_C_FLAGS_DEBUG "-D_DEBUG /Od /Zi /MDd") set(CMAKE_C_FLAGS_RELEASE "/Ox /Oy /MD") set(CMAKE_C_FLAGS_RELWITHDEBINFO "/Ox /Oy /Zi /MD")