summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2013-12-17 09:20:45 +0000
committerOlivier CrĂȘte <olivier.crete@collabora.com>2013-12-18 17:53:06 -0500
commit43466b3b6419673ae2f02722b062a9337bc6da2c (patch)
tree7fcd0298f978ad03f60169cf9664e5bd62fc8b93 /examples
parent3e29fec4a959f2999a0f5a91561f5e798cd9bba2 (diff)
downloadlibnice-43466b3b6419673ae2f02722b062a9337bc6da2c.tar.gz
examples: Remove g_type_init() call for recent GLib versions
Diffstat (limited to 'examples')
-rw-r--r--examples/sdp-example.c2
-rw-r--r--examples/simple-example.c2
-rw-r--r--examples/threaded-example.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/examples/sdp-example.c b/examples/sdp-example.c
index 983f933..c6e9b7b 100644
--- a/examples/sdp-example.c
+++ b/examples/sdp-example.c
@@ -92,7 +92,9 @@ main(int argc, char *argv[])
g_debug("Using stun server '[%s]:%u'\n", stun_addr, stun_port);
}
+#if !GLIB_CHECK_VERSION(2, 36, 0)
g_type_init();
+#endif
gloop = g_main_loop_new(NULL, FALSE);
diff --git a/examples/simple-example.c b/examples/simple-example.c
index 5cf5913..e3b367c 100644
--- a/examples/simple-example.c
+++ b/examples/simple-example.c
@@ -101,7 +101,9 @@ main(int argc, char *argv[])
g_debug("Using stun server '[%s]:%u'\n", stun_addr, stun_port);
}
+#if !GLIB_CHECK_VERSION(2, 36, 0)
g_type_init();
+#endif
gloop = g_main_loop_new(NULL, FALSE);
io_stdin = g_io_channel_unix_new(fileno(stdin));
diff --git a/examples/threaded-example.c b/examples/threaded-example.c
index c4da9fe..29d533a 100644
--- a/examples/threaded-example.c
+++ b/examples/threaded-example.c
@@ -101,7 +101,9 @@ main(int argc, char *argv[])
g_debug("Using stun server '[%s]:%u'\n", stun_addr, stun_port);
}
+#if !GLIB_CHECK_VERSION(2, 36, 0)
g_type_init();
+#endif
gloop = g_main_loop_new(NULL, FALSE);