summaryrefslogtreecommitdiff
path: root/include/yaml.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/yaml.h')
-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)