]> git.jsancho.org Git - lugaru.git/blobdiff - CMakeLists.txt
mingw32: Fix issues with WIN32 not being defined
[lugaru.git] / CMakeLists.txt
index a082391123dafb920fa7caa745e88181f6a6fcc9..ff201528a71b3242f5c47477a1cbedd7b6cbfe76 100644 (file)
@@ -510,6 +510,9 @@ target_link_libraries(lugaru ${LUGARU_LIBS})
 
 if(WIN32)
        add_definitions(-DUSE_OPENAL=1 -DUSE_SDL=1 -DBinIO_STDINT_HEADER=<stdint.h>)
+       if(MINGW)
+               add_definitions(-DWIN32)
+       endif(MINGW)
 else(WIN32)
        add_definitions(-DPLATFORM_LINUX=1 -DPLATFORM_UNIX=1 -DUSE_OPENAL=1 -DUSE_SDL=1 -DBinIO_STDINT_HEADER=<stdint.h>)
 endif(WIN32)