]> git.mxchange.org Git - simgear.git/commitdiff
Replacing strdup with _strdup in MSVC
authorPlutoniumHeart <zhitaoli.hust@gmail.com>
Thu, 7 Mar 2013 06:58:38 +0000 (23:58 -0700)
committerPlutoniumHeart <zhitaoli.hust@gmail.com>
Thu, 7 Mar 2013 06:58:38 +0000 (23:58 -0700)
CMakeLists.txt

index 7c2c8ed606e6f0fc66a2b28be2efdd27c09ea305..d7fd4d552d112833289d5785086ad1bc0fa5f724 100644 (file)
@@ -316,7 +316,7 @@ if(WIN32)
         #     SET(WARNING_FLAGS "${WARNING_FLAGS} /wd${warning}")
         # endforeach(warning)
         
-        set(MSVC_FLAGS "-DWIN32 -DNOMINMAX -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -D__CRT_NONSTDC_NO_WARNINGS /wd4996 /wd4250")
+        set(MSVC_FLAGS "-DWIN32 -DNOMINMAX -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -D__CRT_NONSTDC_NO_WARNINGS /wd4996 /wd4250 -Dstrdup=_strdup")
     endif(MSVC)
     
     # assumed on Windows