diff options
| author | Martin Ridgers <[email protected]> | 2021-09-14 15:15:36 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-09-14 15:16:16 +0200 |
| commit | 78ea2217526e54344332b6f606580e9ea867ed48 (patch) | |
| tree | 57a4c137f28d03d7f6c3a3c4ff9898b1ca003846 | |
| parent | Added #if/endif around a check if 'min' is defined (diff) | |
| download | zen-78ea2217526e54344332b6f606580e9ea867ed48.tar.xz zen-78ea2217526e54344332b6f606580e9ea867ed48.zip | |
Define _CRT_SECURE_NO_WARNINGS
| -rw-r--r-- | xmake.lua | 4 | ||||
| -rw-r--r-- | zenfs_common.props | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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> |