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
This commit is contained in:
Chun-wei Fan 2014-07-04 18:27:41 +08:00
parent 9921571eb0
commit adc6f08ff7
20 changed files with 40 additions and 6 deletions

View File

@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <glib.h>
#include "gitypelib-internal.h"

View File

@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <stdlib.h>
#include <string.h>

View File

@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <stdlib.h>
#include <glib.h>

View File

@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <glib.h>
#include <string.h> // memcpy

View File

@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <glib.h>
#include <girepository.h>

View File

@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <glib.h>
#include <girepository.h>

View File

@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <string.h>
#include <glib.h>

View File

@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <glib.h>
#include <girepository.h>

View File

@ -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:

View File

@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <glib.h>
#include <girepository.h>

View File

@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <glib.h>
#include <girepository.h>

View File

@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <string.h>
#include <glib.h>

View File

@ -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

View File

@ -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.

View File

@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <glib.h>
#include <girepository.h>

View File

@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <glib.h>
#include <girepository.h>

View File

@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <glib.h>
#include <girepository.h>

View File

@ -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 {

View File

@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <glib.h>
#include <girepository.h>

View File

@ -20,6 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <string.h>
#include <glib.h>