girepository: Add missing includes of corresponding headers

Make sure that each C file in `girepository/` includes its corresponding
header file (if such a file exists).

This ensures that the first declaration the compiler sees for each
function contains the symbol visibility macros. This fixes symbol export
(`dllexport`) on Windows platforms.

Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>

Helps: #3155
This commit is contained in:
Philip Withnall 2023-10-25 18:11:38 +01:00
parent 3c89fe9d03
commit 5f012e9f12
17 changed files with 17 additions and 0 deletions

View File

@ -28,6 +28,7 @@
#include "gitypelib-internal.h" #include "gitypelib-internal.h"
#include "girepository-private.h" #include "girepository-private.h"
#include "giarginfo.h"
/* GIArgInfo functions */ /* GIArgInfo functions */

View File

@ -32,6 +32,7 @@
#include "gitypelib-internal.h" #include "gitypelib-internal.h"
#include "girepository-private.h" #include "girepository-private.h"
#include "gibaseinfo.h"
#define INVALID_REFCOUNT 0x7FFFFFFF #define INVALID_REFCOUNT 0x7FFFFFFF

View File

@ -32,6 +32,7 @@
#include "girepository-private.h" #include "girepository-private.h"
#include "gitypelib-internal.h" #include "gitypelib-internal.h"
#include "girffi.h" #include "girffi.h"
#include "gicallableinfo.h"
/* GICallableInfo functions */ /* GICallableInfo functions */

View File

@ -30,6 +30,7 @@
#include <girepository/girepository.h> #include <girepository/girepository.h>
#include "girepository-private.h" #include "girepository-private.h"
#include "gitypelib-internal.h" #include "gitypelib-internal.h"
#include "giconstantinfo.h"
/** /**
* SECTION:giconstantinfo * SECTION:giconstantinfo

View File

@ -29,6 +29,7 @@
#include <girepository/girepository.h> #include <girepository/girepository.h>
#include "girepository-private.h" #include "girepository-private.h"
#include "gitypelib-internal.h" #include "gitypelib-internal.h"
#include "gienuminfo.h"
/** /**
* SECTION:gienuminfo * SECTION:gienuminfo

View File

@ -30,6 +30,7 @@
#include "girepository-private.h" #include "girepository-private.h"
#include "gitypelib-internal.h" #include "gitypelib-internal.h"
#include "config.h" #include "config.h"
#include "gifieldinfo.h"
/** /**
* SECTION:gifieldinfo * SECTION:gifieldinfo

View File

@ -31,6 +31,7 @@
#include <girepository/girepository.h> #include <girepository/girepository.h>
#include "girepository-private.h" #include "girepository-private.h"
#include "gitypelib-internal.h" #include "gitypelib-internal.h"
#include "gifunctioninfo.h"
/** /**
* SECTION:gifunctioninfo * SECTION:gifunctioninfo

View File

@ -29,6 +29,7 @@
#include <girepository/girepository.h> #include <girepository/girepository.h>
#include "girepository-private.h" #include "girepository-private.h"
#include "gitypelib-internal.h" #include "gitypelib-internal.h"
#include "giinterfaceinfo.h"
/** /**
* SECTION:giinterfaceinfo * SECTION:giinterfaceinfo

View File

@ -29,6 +29,7 @@
#include <girepository/girepository.h> #include <girepository/girepository.h>
#include "girepository-private.h" #include "girepository-private.h"
#include "gitypelib-internal.h" #include "gitypelib-internal.h"
#include "giobjectinfo.h"
/** /**
* SECTION:giobjectinfo * SECTION:giobjectinfo

View File

@ -29,6 +29,7 @@
#include <girepository/girepository.h> #include <girepository/girepository.h>
#include "girepository-private.h" #include "girepository-private.h"
#include "gitypelib-internal.h" #include "gitypelib-internal.h"
#include "gipropertyinfo.h"
/** /**
* SECTION:gipropertyinfo * SECTION:gipropertyinfo

View File

@ -31,6 +31,7 @@
#include <girepository/girepository.h> #include <girepository/girepository.h>
#include "girepository-private.h" #include "girepository-private.h"
#include "gitypelib-internal.h" #include "gitypelib-internal.h"
#include "giregisteredtypeinfo.h"
/** /**
* SECTION:giregisteredtypeinfo * SECTION:giregisteredtypeinfo

View File

@ -29,6 +29,7 @@
#include <girepository/girepository.h> #include <girepository/girepository.h>
#include "girepository-private.h" #include "girepository-private.h"
#include "gitypelib-internal.h" #include "gitypelib-internal.h"
#include "gisignalinfo.h"
/** /**
* SECTION:gisignalinfo * SECTION:gisignalinfo

View File

@ -31,6 +31,7 @@
#include <girepository/girepository.h> #include <girepository/girepository.h>
#include "girepository-private.h" #include "girepository-private.h"
#include "gitypelib-internal.h" #include "gitypelib-internal.h"
#include "gistructinfo.h"
/** /**
* SECTION:gistructinfo * SECTION:gistructinfo

View File

@ -29,6 +29,7 @@
#include <girepository/girepository.h> #include <girepository/girepository.h>
#include "girepository-private.h" #include "girepository-private.h"
#include "gitypelib-internal.h" #include "gitypelib-internal.h"
#include "gitypeinfo.h"
/** /**
* SECTION:gitypeinfo * SECTION:gitypeinfo

View File

@ -30,6 +30,7 @@
#include <glib.h> #include <glib.h>
#include "gitypelib-internal.h" #include "gitypelib-internal.h"
#include "gitypelib.h"
typedef struct { typedef struct {
GITypelib *typelib; GITypelib *typelib;

View File

@ -29,6 +29,7 @@
#include <girepository/girepository.h> #include <girepository/girepository.h>
#include "girepository-private.h" #include "girepository-private.h"
#include "gitypelib-internal.h" #include "gitypelib-internal.h"
#include "giunioninfo.h"
/** /**
* SECTION:giunioninfo * SECTION:giunioninfo

View File

@ -31,6 +31,7 @@
#include <girepository/girepository.h> #include <girepository/girepository.h>
#include "girepository-private.h" #include "girepository-private.h"
#include "gitypelib-internal.h" #include "gitypelib-internal.h"
#include "givfuncinfo.h"
/** /**
* SECTION:givfuncinfo * SECTION:givfuncinfo