girepository: Remove C99ism and other updates

-Make code using libgirepository_internals relocatable on Windows,
 like what is done in the GTK+ stack, and the girepository DLL.
-Remove C99isms
-"interface" is a reserved keyword on certain compilers, so change that to
 "giinterface"

https://bugzilla.gnome.org/show_bug.cgi?id=681820
This commit is contained in:
Chun-wei Fan
2012-07-24 16:09:38 +08:00
committed by Colin Walters
parent c449db7704
commit 08da5d65ee
5 changed files with 42 additions and 15 deletions

View File

@@ -190,10 +190,10 @@ get_interface_size_alignment (GIrTypelibBuild *build,
{
GIrNode *iface;
iface = _g_ir_find_node (build, ((GIrNode*)type)->module, type->interface);
iface = _g_ir_find_node (build, ((GIrNode*)type)->module, type->giinterface);
if (!iface)
{
_g_ir_module_fatal (build, 0, "Can't resolve type '%s' for %s", type->interface, who);
_g_ir_module_fatal (build, 0, "Can't resolve type '%s' for %s", type->giinterface, who);
*size = -1;
*alignment = -1;
return FALSE;