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

Added WSAStartup/WSACleanup on win32

parent 7736600f
...@@ -49,6 +49,10 @@ main (void) ...@@ -49,6 +49,10 @@ main (void)
NiceAgent *agent; NiceAgent *agent;
NiceAddress addr; NiceAddress addr;
#ifdef G_OS_WIN32
WSADATA w;
WSAStartup(0x0202, &w);
#endif
nice_address_init (&addr); nice_address_init (&addr);
g_type_init (); g_type_init ();
#if !GLIB_CHECK_VERSION(2,31,8) #if !GLIB_CHECK_VERSION(2,31,8)
...@@ -74,7 +78,9 @@ main (void) ...@@ -74,7 +78,9 @@ main (void)
g_assert (NULL == agent->streams); g_assert (NULL == agent->streams);
g_object_unref (agent); g_object_unref (agent);
#ifdef G_OS_WIN32
WSACleanup();
#endif
return 0; 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