mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-07 00:18:44 +02:00
girepository: Remove redundant GLib version checks
Now that libgirepository is inside glib.git, it’s guaranteed access to all the latest APIs, so there’s no need for version checks. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3155
This commit is contained in:
@@ -126,13 +126,9 @@ gi_constant_info_get_value (GIConstantInfo *info,
|
||||
{
|
||||
if (blob->type.flags.pointer)
|
||||
{
|
||||
#if GLIB_CHECK_VERSION (2, 67, 5)
|
||||
gsize blob_size = blob->size;
|
||||
|
||||
value->v_pointer = g_memdup2 (&rinfo->typelib->data[blob->offset], blob_size);
|
||||
#else
|
||||
value->v_pointer = g_memdup (&rinfo->typelib->data[blob->offset], blob->size);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user