Eneboo - Documentación para desarrolladores
|
00001 #ifndef __win32_h_included 00002 #define __win32_h_included 00003 00004 /* 00005 * Some compatibility functions 00006 */ 00007 #ifdef __BORLANDC__ 00008 #define _timeb timeb 00009 #define _ftime(a) ftime(a) 00010 #define _errno errno 00011 #define popen(a,b) _popen(a,b) 00012 #else 00013 /* open provided elsewhere */ 00014 #define close(a) _close(a) 00015 #define read(a,b,c) _read(a,b,c) 00016 #define write(a,b,c) _write(a,b,c) 00017 #endif 00018 00019 #undef EAGAIN /* doesn't apply on sockets */ 00020 #undef EINTR 00021 #define EINTR WSAEINTR 00022 #define EWOULDBLOCK WSAEWOULDBLOCK 00023 #define ECONNRESET WSAECONNRESET 00024 #define EINPROGRESS WSAEINPROGRESS 00025 00026 /* 00027 * support for handling Windows Socket errors 00028 */ 00029 extern const char *winsock_strerror(int err, char *strerrbuf, size_t buflen); 00030 00031 #endif