From 134f8d058ca66adb16d28b5dc1ae8fd8aa4bb3a5 Mon Sep 17 00:00:00 2001 From: Mark Sheahan Date: Wed, 22 Nov 2017 11:48:07 -0500 Subject: [PATCH] change dllexport controlling macro to use _WIN32 (provided by msvc compiler) instead of WIN32 (which is user configurable, and omitted by default on some x64 builds); this fixes an issue with 64 bit windows static library builds --- include/yaml.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/yaml.h b/include/yaml.h index 92f6b5cb..01722eff 100644 --- a/include/yaml.h +++ b/include/yaml.h @@ -28,7 +28,7 @@ extern "C" { #if defined(__MINGW32__) # define YAML_DECLARE(type) type -#elif defined(WIN32) +#elif defined(_WIN32) # if defined(YAML_DECLARE_STATIC) # define YAML_DECLARE(type) type # elif defined(YAML_DECLARE_EXPORT)