Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
311 B

#ifdef __MINGW32__
#include "socket.h"
#include "windoze.h"
void __winsock_init(void) {
static int inited;
if (!inited) {
WSADATA wsaData;
if (WSAStartup( MAKEWORD(2,2), &wsaData ) ||
LOBYTE( wsaData.wVersion ) != 2 ||
HIBYTE( wsaData.wVersion ) != 2)
exit(111);
inited=1;
}
}
#endif