windows: Add utils_init/deinit functions to initialize Winsock2

This commit is contained in:
Martin Willi
2014-06-04 15:52:59 +02:00
parent fb81820796
commit 87a79e6a03
6 changed files with 79 additions and 0 deletions
+20
View File
@@ -47,6 +47,26 @@ ENUM(status_names, SUCCESS, NEED_MORE,
"NEED_MORE",
);
/**
* See header
*/
void utils_init()
{
#ifdef WIN32
windows_init();
#endif /* WIN32 */
}
/**
* See header
*/
void utils_deinit()
{
#ifdef WIN32
windows_deinit();
#endif /* WIN32 */
}
/**
* Described in header.
*/