diff options
author | Anthony Hendrickson <ahendrickson@ausinc.com> | 2017-03-10 16:12:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-10 16:12:57 -0500 |
commit | 119b7b6adfa72552d6dc7eb03f402ff5cf8f9fa6 (patch) | |
tree | 5df7e8e4f0cf324ac05ead08e54c9ef0dcd3962a /include | |
parent | 300bd3f89e7ee0b581b5df2550486126abc47baf (diff) | |
download | libyaml-git-119b7b6adfa72552d6dc7eb03f402ff5cf8f9fa6.tar.gz |
Updates defs for MingGW support on Windows
addresses issue #52
Diffstat (limited to 'include')
-rw-r--r-- | include/yaml.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/yaml.h b/include/yaml.h index 4362145..92f6b5c 100644 --- a/include/yaml.h +++ b/include/yaml.h @@ -26,7 +26,9 @@ extern "C" { /** The public API declaration. */ -#ifdef _WIN32 +#if defined(__MINGW32__) +# define YAML_DECLARE(type) type +#elif defined(WIN32) # if defined(YAML_DECLARE_STATIC) # define YAML_DECLARE(type) type # elif defined(YAML_DECLARE_EXPORT) |