From 119b7b6adfa72552d6dc7eb03f402ff5cf8f9fa6 Mon Sep 17 00:00:00 2001 From: Anthony Hendrickson Date: Fri, 10 Mar 2017 16:12:57 -0500 Subject: [PATCH] Updates defs for MingGW support on Windows addresses issue #52 --- include/yaml.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.45.0