Fixed mingw build.
This commit is contained in:
parent
b11c13fb9f
commit
619163d40e
2
.gitignore
vendored
2
.gitignore
vendored
@ -12,5 +12,5 @@ CPackSourceConfig.cmake
|
||||
cmake_uninstall.cmake
|
||||
CTestTestfile.cmake
|
||||
install_manifest.txt
|
||||
build
|
||||
build*
|
||||
Build
|
||||
|
@ -201,6 +201,10 @@ endif(CMAKE_COMPILER_IS_GNUCXX)
|
||||
|
||||
if(WIN32)
|
||||
|
||||
if(MINGW)
|
||||
add_definitions(-D_WIN32_WINNT=0x501)
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
# turn off various warnings
|
||||
# foreach(warning 4244 4251 4267 4275 4290 4786 4305 4996)
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include <cstdlib>
|
||||
#include <cstdio>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#if defined _MSC_VER || defined _WIN32_WINNT
|
||||
# define random rand
|
||||
#endif
|
||||
|
||||
|
@ -23,6 +23,8 @@
|
||||
#endif
|
||||
|
||||
#include <simgear/misc/sg_dir.hxx>
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
|
Loading…
Reference in New Issue
Block a user