Fix SDL2 compile-errors, made it work on Win64

.. when compiled with MSVC2012
This commit is contained in:
Kevin Doyon 2013-04-19 14:40:34 -04:00 committed by Daniel Gibson
parent 1ea1a299fb
commit 44004d8bbc

View file

@ -213,6 +213,7 @@ elseif(MSVC)
add_definitions(/wd4714) # 'function' marked as __forceinline not inlined add_definitions(/wd4714) # 'function' marked as __forceinline not inlined
add_definitions(/wd4996) # 'function': was declared deprecated add_definitions(/wd4996) # 'function': was declared deprecated
add_definitions(/wd4068) # unknown pragma 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_DEBUG "-D_DEBUG /Od /Zi /MDd")
set(CMAKE_C_FLAGS_RELEASE "/Ox /Oy /MD") set(CMAKE_C_FLAGS_RELEASE "/Ox /Oy /MD")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "/Ox /Oy /Zi /MD") set(CMAKE_C_FLAGS_RELWITHDEBINFO "/Ox /Oy /Zi /MD")