From: PlutoniumHeart Date: Thu, 7 Mar 2013 06:58:38 +0000 (-0700) Subject: Replacing strdup with _strdup in MSVC X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=870fc2e53eec508e67268b4daeafef2be1445d37;p=simgear.git Replacing strdup with _strdup in MSVC --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 7c2c8ed6..d7fd4d55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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