mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-09-03 22:04:24 +00:00
Skip deprecated g_type_init() for GLib 2.36
This commit is contained in:
@@ -95,7 +95,9 @@ main(int argc, char *argv[])
|
|||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
TcpTransport *transport;
|
TcpTransport *transport;
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION(2, 36, 0)
|
||||||
g_type_init();
|
g_type_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
WSADATA wsadata;
|
WSADATA wsadata;
|
||||||
|
@@ -180,7 +180,9 @@ main(int argc, char *argv[])
|
|||||||
SearpcClient *rpc_client;
|
SearpcClient *rpc_client;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION(2, 36, 0)
|
||||||
g_type_init();
|
g_type_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
WSADATA wsadata;
|
WSADATA wsadata;
|
||||||
|
@@ -86,7 +86,9 @@ main(int argc, char *argv[])
|
|||||||
char buf[BUFLEN];
|
char buf[BUFLEN];
|
||||||
packet *pac, *pac_ret;
|
packet *pac, *pac_ret;
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION(2, 36, 0)
|
||||||
g_type_init();
|
g_type_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
WSADATA wsadata;
|
WSADATA wsadata;
|
||||||
|
@@ -339,7 +339,9 @@ void test_simple_call_async (void *fixture, const void *data)
|
|||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
#if !GLIB_CHECK_VERSION(2, 36, 0)
|
||||||
g_type_init ();
|
g_type_init ();
|
||||||
|
#endif
|
||||||
g_test_init (&argc, &argv, NULL);
|
g_test_init (&argc, &argv, NULL);
|
||||||
|
|
||||||
searpc_server_init (register_marshals);
|
searpc_server_init (register_marshals);
|
||||||
|
Reference in New Issue
Block a user