aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-09-14 15:15:36 +0200
committerMartin Ridgers <[email protected]>2021-09-14 15:16:16 +0200
commit78ea2217526e54344332b6f606580e9ea867ed48 (patch)
tree57a4c137f28d03d7f6c3a3c4ff9898b1ca003846
parentAdded #if/endif around a check if 'min' is defined (diff)
downloadzen-78ea2217526e54344332b6f606580e9ea867ed48.tar.xz
zen-78ea2217526e54344332b6f606580e9ea867ed48.zip
Define _CRT_SECURE_NO_WARNINGS
-rw-r--r--xmake.lua4
-rw-r--r--zenfs_common.props2
2 files changed, 5 insertions, 1 deletions
diff --git a/xmake.lua b/xmake.lua
index b1226edb1..60594a0d7 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -32,6 +32,10 @@ if is_mode("debug") then
add_defines("DEBUG")
end
+if is_os("windows") then
+ add_defines("_CRT_SECURE_NO_WARNINGS")
+end
+
add_defines("USE_SENTRY=1")
option("vfs")
diff --git a/zenfs_common.props b/zenfs_common.props
index f550ff929..67894b9e8 100644
--- a/zenfs_common.props
+++ b/zenfs_common.props
@@ -11,7 +11,7 @@
<WarningLevel>Level4</WarningLevel>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<TreatWarningAsError>true</TreatWarningAsError>
- <PreprocessorDefinitions>_UNICODE;UNICODE;_WIN32_WINNT=0x0A00 ;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;_UNICODE;UNICODE;_WIN32_WINNT=0x0A00 ;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<IgnoreSpecificDefaultLibraries>msvcrt</IgnoreSpecificDefaultLibraries>