Skip to content
Snippets Groups Projects
Commit 9e0440b2 authored by Ludovico de Nittis's avatar Ludovico de Nittis
Browse files

Merge branch 'wip/smcv/g-type-init' into 'master'

utils: Ensure that g_type_init() gets called

See merge request steam/steam-runtime-tools!16
parents 304fb677 cf327060
No related branches found
No related tags found
1 merge request!16utils: Ensure that g_type_init() gets called
Pipeline #1281 passed
......@@ -29,6 +29,8 @@
#include <link.h>
#include <string.h>
#include <glib-object.h>
static gchar *helpers_path = NULL;
G_GNUC_INTERNAL const char *
......@@ -95,3 +97,12 @@ out:
return path;
}
#if !GLIB_CHECK_VERSION(2, 36, 0)
static void _srt_constructor (void) __attribute__((__constructor__));
static void
_srt_constructor (void)
{
g_type_init ();
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment