summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Hendrickson <ahendrickson@ausinc.com>2017-03-10 16:12:57 -0500
committerGitHub <noreply@github.com>2017-03-10 16:12:57 -0500
commit119b7b6adfa72552d6dc7eb03f402ff5cf8f9fa6 (patch)
tree5df7e8e4f0cf324ac05ead08e54c9ef0dcd3962a
parent300bd3f89e7ee0b581b5df2550486126abc47baf (diff)
downloadlibyaml-git-119b7b6adfa72552d6dc7eb03f402ff5cf8f9fa6.tar.gz
Updates defs for MingGW support on Windows
addresses issue #52
-rw-r--r--include/yaml.h4
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)