2003-11-06 22:43:30 +00:00
|
|
|
#ifdef __MINGW32__
|
|
|
|
|
2012-02-07 17:02:40 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2003-11-06 22:43:30 +00:00
|
|
|
/* set errno to WSAGetLastError() */
|
|
|
|
int winsock2errno(long l);
|
|
|
|
void __winsock_init(void);
|
|
|
|
|
2014-05-07 23:51:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2003-11-06 22:43:30 +00:00
|
|
|
#else
|
|
|
|
|
|
|
|
#define winsock2errno(fnord) (fnord)
|
|
|
|
#define __winsock_init()
|
|
|
|
|
|
|
|
#endif
|