From a1dc7861f80f234b10e6445c1f1b1670baa12c52 Mon Sep 17 00:00:00 2001 From: Mark Sheahan Date: Sat, 11 Apr 2020 10:06:53 -0400 Subject: 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 (#66) Co-authored-by: Mark Sheahan --- include/yaml.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/yaml.h b/include/yaml.h index 1a183d9..06e5560 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) -- cgit v1.2.1