Commit 476500db authored by Filippo Della Betta's avatar Filippo Della Betta Committed by Youness Alaoui

Fixed mingw/msys compilation. Definition for intptr_t was missing. Added...

Fixed mingw/msys compilation. Definition for intptr_t was missing. Added WSAStartup/WSACleanup on win32
parent 3ccd8370
......@@ -44,6 +44,7 @@
#include <stdlib.h>
#include <string.h>
#include <io.h>
static NiceComponentState global_lagent_state = NICE_COMPONENT_STATE_LAST;
......@@ -483,6 +484,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);
......@@ -563,6 +569,8 @@ int main (void)
global_mainloop = NULL;
g_source_remove (timer_id);
#ifdef G_OS_WIN32
WSACleanup();
#endif
return result;
}
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