win32: create a compatibility macro for sleep()

This commit is contained in:
Ronnie Sahlberg
2012-05-15 21:49:29 +10:00
parent 6c23b6acc1
commit 7215a917f2

View File

@@ -41,6 +41,7 @@ typedef int socklen_t;
/* Wrapper macros to call misc. functions win32 is missing */
#define poll(x, y, z) win32_poll(x, y, z)
#define inet_pton(x,y,z) win32_inet_pton(x,y,z)
#define sleep(x) Sleep(x * 1000)
int win32_inet_pton(int af, const char * src, void * dst);
int win32_poll(struct pollfd *fds, unsigned int nfsd, int timeout);
int win32_gettimeofday(struct timeval *tv, struct timezone *tz);