diff options
author | Mark Sheahan <marksheahan@users.noreply.github.com> | 2020-04-11 10:06:53 -0400 |
---|---|---|
committer | Tina Müller <cpan2@tinita.de> | 2020-04-11 16:10:50 +0200 |
commit | a1dc7861f80f234b10e6445c1f1b1670baa12c52 (patch) | |
tree | fc1c36133fab0d1230fd23ee3a2f280ea3a7c30c | |
parent | 3d5b7e65dbd57a4d6f8508658efd3ad38d5125ce (diff) | |
download | libyaml-git-a1dc7861f80f234b10e6445c1f1b1670baa12c52.tar.gz |
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>
-rw-r--r-- | include/yaml.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) |