summaryrefslogtreecommitdiff
path: root/girepository
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
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')
-rw-r--r--girepository/giarginfo.c2
-rw-r--r--girepository/gibaseinfo.c2
-rw-r--r--girepository/gicallableinfo.c2
-rw-r--r--girepository/giconstantinfo.c2
-rw-r--r--girepository/gienuminfo.c2
-rw-r--r--girepository/gifieldinfo.c2
-rw-r--r--girepository/gifunctioninfo.c2
-rw-r--r--girepository/giinterfaceinfo.c2
-rw-r--r--girepository/ginvoke.c3
-rw-r--r--girepository/giobjectinfo.c2
-rw-r--r--girepository/gipropertyinfo.c2
-rw-r--r--girepository/giregisteredtypeinfo.c2
-rw-r--r--girepository/girepository.c5
-rw-r--r--girepository/girparser.c3
-rw-r--r--girepository/gisignalinfo.c2
-rw-r--r--girepository/gistructinfo.c2
-rw-r--r--girepository/gitypeinfo.c2
-rw-r--r--girepository/gitypelib.c3
-rw-r--r--girepository/giunioninfo.c2
-rw-r--r--girepository/givfuncinfo.c2
20 files changed, 40 insertions, 6 deletions
diff --git a/girepository/giarginfo.c b/girepository/giarginfo.c
index 083ca44d..6bc53c48 100644
--- a/girepository/giarginfo.c
+++ b/girepository/giarginfo.c
@@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <glib.h>
#include "gitypelib-internal.h"
diff --git a/girepository/gibaseinfo.c b/girepository/gibaseinfo.c
index 25c98b0e..5d9e5f37 100644
--- a/girepository/gibaseinfo.c
+++ b/girepository/gibaseinfo.c
@@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <stdlib.h>
#include <string.h>
diff --git a/girepository/gicallableinfo.c b/girepository/gicallableinfo.c
index 702e16cd..7e0ec776 100644
--- a/girepository/gicallableinfo.c
+++ b/girepository/gicallableinfo.c
@@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <stdlib.h>
#include <glib.h>
diff --git a/girepository/giconstantinfo.c b/girepository/giconstantinfo.c
index 7b2f716c..60715a4b 100644
--- a/girepository/giconstantinfo.c
+++ b/girepository/giconstantinfo.c
@@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <glib.h>
#include <string.h> // memcpy
diff --git a/girepository/gienuminfo.c b/girepository/gienuminfo.c
index 253ec684..42930b2f 100644
--- a/girepository/gienuminfo.c
+++ b/girepository/gienuminfo.c
@@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <glib.h>
#include <girepository.h>
diff --git a/girepository/gifieldinfo.c b/girepository/gifieldinfo.c
index 2bbc0214..ea64dabb 100644
--- a/girepository/gifieldinfo.c
+++ b/girepository/gifieldinfo.c
@@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <glib.h>
#include <girepository.h>
diff --git a/girepository/gifunctioninfo.c b/girepository/gifunctioninfo.c
index ecd61275..ece94818 100644
--- a/girepository/gifunctioninfo.c
+++ b/girepository/gifunctioninfo.c
@@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <string.h>
#include <glib.h>
diff --git a/girepository/giinterfaceinfo.c b/girepository/giinterfaceinfo.c
index 481fc54e..d60729c3 100644
--- a/girepository/giinterfaceinfo.c
+++ b/girepository/giinterfaceinfo.c
@@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <glib.h>
#include <girepository.h>
diff --git a/girepository/ginvoke.c b/girepository/ginvoke.c
index 6eba9fcc..bd5aa2cd 100644
--- a/girepository/ginvoke.c
+++ b/girepository/ginvoke.c
@@ -19,6 +19,8 @@
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <stdlib.h>
#include <glib.h>
@@ -26,7 +28,6 @@
#include <girepository.h>
#include "girffi.h"
-#include "config.h"
/**
* value_to_ffi_type:
diff --git a/girepository/giobjectinfo.c b/girepository/giobjectinfo.c
index d92a8615..381f4651 100644
--- a/girepository/giobjectinfo.c
+++ b/girepository/giobjectinfo.c
@@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <glib.h>
#include <girepository.h>
diff --git a/girepository/gipropertyinfo.c b/girepository/gipropertyinfo.c
index 77a11cb8..338f360b 100644
--- a/girepository/gipropertyinfo.c
+++ b/girepository/gipropertyinfo.c
@@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <glib.h>
#include <girepository.h>
diff --git a/girepository/giregisteredtypeinfo.c b/girepository/giregisteredtypeinfo.c
index e45e0603..1555c459 100644
--- a/girepository/giregisteredtypeinfo.c
+++ b/girepository/giregisteredtypeinfo.c
@@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <string.h>
#include <glib.h>
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
diff --git a/girepository/girparser.c b/girepository/girparser.c
index f928c2e2..eb61e34a 100644
--- a/girepository/girparser.c
+++ b/girepository/girparser.c
@@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
@@ -29,7 +31,6 @@
#include "girmodule.h"
#include "girnode.h"
#include "gitypelib-internal.h"
-#include "config.h"
/* This is a "major" version in the sense that it's only bumped
* for incompatible changes.
diff --git a/girepository/gisignalinfo.c b/girepository/gisignalinfo.c
index be75276e..e72890d7 100644
--- a/girepository/gisignalinfo.c
+++ b/girepository/gisignalinfo.c
@@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <glib.h>
#include <girepository.h>
diff --git a/girepository/gistructinfo.c b/girepository/gistructinfo.c
index f205e7cf..0fbaec84 100644
--- a/girepository/gistructinfo.c
+++ b/girepository/gistructinfo.c
@@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <glib.h>
#include <girepository.h>
diff --git a/girepository/gitypeinfo.c b/girepository/gitypeinfo.c
index 3c17f564..1bc189cb 100644
--- a/girepository/gitypeinfo.c
+++ b/girepository/gitypeinfo.c
@@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <glib.h>
#include <girepository.h>
diff --git a/girepository/gitypelib.c b/girepository/gitypelib.c
index 41b54fd8..09e74f13 100644
--- a/girepository/gitypelib.c
+++ b/girepository/gitypelib.c
@@ -20,12 +20,13 @@
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <stdlib.h>
#include <string.h>
#include <glib.h>
-#include "config.h"
#include "gitypelib-internal.h"
typedef struct {
diff --git a/girepository/giunioninfo.c b/girepository/giunioninfo.c
index 8ae1e915..a819595f 100644
--- a/girepository/giunioninfo.c
+++ b/girepository/giunioninfo.c
@@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <glib.h>
#include <girepository.h>
diff --git a/girepository/givfuncinfo.c b/girepository/givfuncinfo.c
index 8a5b71a1..c16fb01d 100644
--- a/girepository/givfuncinfo.c
+++ b/girepository/givfuncinfo.c
@@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
+#include "config.h"
+
#include <string.h>
#include <glib.h>