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 "girepository-private.h"
#include "giarginfo.h"
/* GIArgInfo functions */

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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