Commit 3da890d4 authored by Filippo Della Betta's avatar Filippo Della Betta Committed by Youness Alaoui

WSAStartup/WSACleanup added on WIN32 platform

parent 0cdef497
......@@ -207,6 +207,12 @@ int main (void)
GSList *cands, *i;
guint ls_id, rs_id;
#ifdef G_OS_WIN32
WSADATA w;
WSAStartup(0x0202, &w);
#endif
g_type_init ();
#if !GLIB_CHECK_VERSION(2,31,8)
g_thread_init (NULL);
......@@ -397,5 +403,8 @@ int main (void)
g_source_remove (timer_id);
#ifdef G_OS_WIN32
WSACleanup();
#endif
return 0;
}
......@@ -803,6 +803,11 @@ int main (void)
guint timer_id;
const char *stun_server = NULL, *stun_server_port = NULL;
#ifdef G_OS_WIN32
WSADATA w;
WSAStartup(0x0202, &w);
#endif
g_type_init ();
#if !GLIB_CHECK_VERSION(2,31,8)
g_thread_init(NULL);
......@@ -1046,6 +1051,8 @@ int main (void)
global_mainloop = NULL;
g_source_remove (timer_id);
#ifdef G_OS_WIN32
WSACleanup();
#endif
return result;
}
......@@ -52,6 +52,12 @@ main (void)
GSList *candidates, *i;
guint stream_id;
#ifdef G_OS_WIN32
WSADATA w;
WSAStartup(0x0202, &w);
#endif
nice_address_init (&addr_local);
nice_address_init (&addr_remote);
g_type_init ();
......@@ -94,6 +100,9 @@ main (void)
/* clean up */
g_object_unref (agent);
#ifdef G_OS_WIN32
WSACleanup();
#endif
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment