blob: f86f26cf17f1051c4ddbf6cbdd05e84c03af8bd1 [file] [log] [blame]
diff --git a/include/yaml.h b/include/yaml.h
index 5a04d36..c6e8b71 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)
diff --git a/yaml-0.1.pc.in b/yaml-0.1.pc.in
index c566abf..70c8008 100644
--- a/yaml-0.1.pc.in
+++ b/yaml-0.1.pc.in
@@ -6,5 +6,5 @@ libdir=@libdir@
Name: LibYAML
Description: Library to parse and emit YAML
Version: @PACKAGE_VERSION@
-Cflags:
+Cflags: -I${includedir}
Libs: -L${libdir} -lyaml