summaryrefslogtreecommitdiff
path: root/girepository/girepository.c
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2014-07-04 18:27:41 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2014-07-07 09:24:12 +0800
commit0ad96c5a4f3bd323e023978cc2f95caa91e24682 (patch)
treec232c2f9ff870f46dbd0e23ac84db9c8577356a7 /girepository/girepository.c
parent011b7c4496404d60a5b62bbe7de262e37509c5fb (diff)
downloadgobject-introspection-0ad96c5a4f3bd323e023978cc2f95caa91e24682.tar.gz
girepository: Include config.h First in All Sources
This includes config.h in all the C-sources of girepository so that we can get the correct export directive from config.h during compile time and therefore export the symbols as necessary, like what GLib and GTK+ is currently doing. https://bugzilla.gnome.org/show_bug.cgi?id=732669
Diffstat (limited to 'girepository/girepository.c')
-rw-r--r--girepository/girepository.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/girepository/girepository.c b/girepository/girepository.c
index 6fc7c77e..931385ff 100644
--- a/girepository/girepository.c
+++ b/girepository/girepository.c
@@ -21,6 +21,8 @@
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -32,9 +34,6 @@
#include "gitypelib-internal.h"
#include "girepository-private.h"
-#include "config.h"
-
-
/**
* SECTION:girepository
* @short_description: GObject Introspection repository manager