diff --git a/windoze.h b/windoze.h new file mode 100644 index 0000000..4655086 --- /dev/null +++ b/windoze.h @@ -0,0 +1,12 @@ +#ifdef __MINGW32__ + +/* set errno to WSAGetLastError() */ +int winsock2errno(long l); +void __winsock_init(void); + +#else + +#define winsock2errno(fnord) (fnord) +#define __winsock_init() + +#endif