mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-28 02:20:04 +01:00
Bump shared library version, typelib version
https://bugzilla.gnome.org/show_bug.cgi?id=623774
This commit is contained in:
parent
4994c3d4b8
commit
cf2b0074ad
@ -55,7 +55,7 @@ libgirepository_1_0_la_SOURCES = \
|
||||
|
||||
libgirepository_1_0_la_CPPFLAGS = $(GIREPO_CFLAGS)
|
||||
libgirepository_1_0_la_LIBADD = $(GIREPO_LIBS)
|
||||
libgirepository_1_0_la_LDFLAGS = -no-undefined
|
||||
libgirepository_1_0_la_LDFLAGS = -no-undefined -version-number 1:0:0
|
||||
|
||||
libgirepository_parser_la_SOURCES = \
|
||||
girmodule.c \
|
||||
|
@ -290,7 +290,7 @@ g_ir_module_build_typelib (GIrModule *module,
|
||||
/* fill in header */
|
||||
header = (Header *)data;
|
||||
memcpy (header, G_IR_MAGIC, 16);
|
||||
header->major_version = 2;
|
||||
header->major_version = 3;
|
||||
header->minor_version = 0;
|
||||
header->reserved = 0;
|
||||
header->n_entries = n_entries;
|
||||
|
@ -288,12 +288,13 @@ validate_header (ValidateContext *ctx,
|
||||
|
||||
}
|
||||
|
||||
if (header->major_version != 2 || header->minor_version != 0)
|
||||
if (header->major_version != 3 || header->minor_version != 0)
|
||||
{
|
||||
g_set_error (error,
|
||||
G_TYPELIB_ERROR,
|
||||
G_TYPELIB_ERROR_INVALID_HEADER,
|
||||
"Version mismatch");
|
||||
"Version mismatch; expected 3, found %d",
|
||||
header->major_version);
|
||||
return FALSE;
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user