Browse Source

meson: Fix defining PKGCONF_API (#174)

TingPing 2 years ago
parent
commit
83eea876b0
2 changed files with 2 additions and 1 deletions
  1. 1
    1
      libpkgconf/libpkgconf.h
  2. 1
    0
      meson.build

+ 1
- 1
libpkgconf/libpkgconf.h View File

@@ -20,9 +20,9 @@
20 20
 #include <stdarg.h>
21 21
 #include <stddef.h>
22 22
 #include <stdbool.h>
23
+#include <libpkgconf/libpkgconf-api.h>
23 24
 #include <libpkgconf/iter.h>
24 25
 #include <libpkgconf/bsdstubs.h>
25
-#include <libpkgconf/libpkgconf-api.h>
26 26
 
27 27
 #ifdef __cplusplus
28 28
 extern "C" {

+ 1
- 0
meson.build View File

@@ -70,6 +70,7 @@ libpkgconf = shared_library('pkgconf',
70 70
   'libpkgconf/pkg.c',
71 71
   'libpkgconf/queue.c',
72 72
   'libpkgconf/tuple.c',
73
+  c_args: '-DLIBPKGCONF_EXPORT',
73 74
   install : true,
74 75
   version : '3.0.0',
75 76
   soversion : '3',