# HG changeset patch
# User Mark Sheahan <marksheahan@users.noreply.github.com>
# Date 1586614013 14400
#      Sat Apr 11 10:06:53 2020 -0400
# Node ID e9114ea946c0ddf761a79913471d2a978c00df2b
# Parent  1486036fead9ddb248d1ec14ccc077fcdb2f3fe8
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 <mark.sheahan@upguard.com>

diff --git a/include/yaml.h b/include/yaml.h
--- a/include/yaml.h
+++ b/include/yaml.h
@@ -28,7 +28,7 @@
 
 #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)