blob: f86f26cf17f1051c4ddbf6cbdd05e84c03af8bd1 [file] [log] [blame]
Christian Eglie35275a2020-02-24 13:08:57 +01001diff --git a/include/yaml.h b/include/yaml.h
2index 5a04d36..c6e8b71 100644
3--- a/include/yaml.h
4+++ b/include/yaml.h
5@@ -26,7 +26,9 @@ extern "C" {
6
7 /** The public API declaration. */
8
9-#ifdef _WIN32
10+#if defined(__MINGW32__)
11+# define YAML_DECLARE(type) type
12+#elif defined(WIN32)
13 # if defined(YAML_DECLARE_STATIC)
14 # define YAML_DECLARE(type) type
15 # elif defined(YAML_DECLARE_EXPORT)
16diff --git a/yaml-0.1.pc.in b/yaml-0.1.pc.in
17index c566abf..70c8008 100644
18--- a/yaml-0.1.pc.in
19+++ b/yaml-0.1.pc.in
20@@ -6,5 +6,5 @@ libdir=@libdir@
21 Name: LibYAML
22 Description: Library to parse and emit YAML
23 Version: @PACKAGE_VERSION@
24-Cflags:
25+Cflags: -I${includedir}
26 Libs: -L${libdir} -lyaml