From bfada958b9cf8e2bfbeb2b9583f63bbd735c6b8b Mon Sep 17 00:00:00 2001 From: Andreas Traczyk Date: Mon, 23 Jul 2018 13:45:52 -0400 Subject: [PATCH] build: replace WIN32_NATIVE macro with _MSC_VER --- MSVC/opendht.vcxproj | 8 ++++---- include/opendht/rng.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/MSVC/opendht.vcxproj b/MSVC/opendht.vcxproj index 38158f9c..ef50ae5e 100644 --- a/MSVC/opendht.vcxproj +++ b/MSVC/opendht.vcxproj @@ -146,7 +146,7 @@ Disabled true ..\..\include;..\include;..\include\opendht;..\..\msgpack-c\include; - _CRT_SECURE_NO_WARNINGS;WIN32_NATIVE;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) 4804;4800;4101;4267;4244;4503; -D_SCL_SECURE_NO_WARNINGS %(AdditionalOptions) false @@ -169,7 +169,7 @@ copy ..\include\opendht.h $(OutDir)\include\ Disabled true ..\..\include;..\include;..\include\opendht;..\..\msgpack-c\include; - _CRT_SECURE_NO_WARNINGS;WIN32_NATIVE;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) 4804;4800;4101;4267;4244;4503; -D_SCL_SECURE_NO_WARNINGS %(AdditionalOptions) @@ -193,7 +193,7 @@ copy ..\include\opendht.h $(OutDir)\include\ true true ..\..\include;..\include;..\include\opendht;..\..\msgpack-c\include; - _CRT_SECURE_NO_WARNINGS;WIN32_NATIVE;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) 4804;4800;4101;4267;4244;4503; -D_SCL_SECURE_NO_WARNINGS %(AdditionalOptions) $(OutDir)\lib\x86\$(TargetName).pdb @@ -223,7 +223,7 @@ copy ..\include\opendht.h $(OutDir)\include\ true true $(ProjectDir)contrib\build\include;$(ProjectDir)..\include;$(ProjectDir)..\include\opendht;$(ProjectDir)contrib\build\msgpack-c\include;$(ProjectDir)contrib\build\argon2\include;$(ProjectDir)..\..\include;$(ProjectDir)..\..\argon2\include - _CRT_SECURE_NO_WARNINGS;WIN32_NATIVE;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;WIN32_LEAN_AND_MEAN;_MBCS;%(PreprocessorDefinitions) 4804;4800;4101;4267;4244;4503;4273; -D_SCL_SECURE_NO_WARNINGS %(AdditionalOptions) $(OutDir)\lib\x64\$(TargetName).pdb diff --git a/include/opendht/rng.h b/include/opendht/rng.h index ddaedaa7..083f1947 100644 --- a/include/opendht/rng.h +++ b/include/opendht/rng.h @@ -25,7 +25,7 @@ namespace dht { namespace crypto { -#ifndef WIN32_NATIVE +#ifndef _MSC_VER #ifdef _WIN32 /**