From: Anthony Hendrickson Date: Fri, 10 Mar 2017 21:12:57 +0000 (-0500) Subject: Updates defs for MingGW support on Windows X-Git-Tag: upstream/0.2.1^2~21 X-Git-Url: http://andersk.mit.edu/gitweb/libyaml.git/commitdiff_plain/119b7b6adfa72552d6dc7eb03f402ff5cf8f9fa6 Updates defs for MingGW support on Windows addresses issue #52 --- 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)