diff options
Diffstat (limited to 'src/libmowgli/platform/win32/win32_stdinc.h')
-rw-r--r-- | src/libmowgli/platform/win32/win32_stdinc.h | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/src/libmowgli/platform/win32/win32_stdinc.h b/src/libmowgli/platform/win32/win32_stdinc.h index 1360a4a..e4e1d05 100644 --- a/src/libmowgli/platform/win32/win32_stdinc.h +++ b/src/libmowgli/platform/win32/win32_stdinc.h @@ -26,24 +26,18 @@ #ifdef _WIN32 -#include <winsock2.h> -#include <ws2tcpip.h> -#include <time.h> - -#define strcasecmp _stricmp -#define strdup _strdup -#define usleep(_usecs) Sleep((_usecs)/1000L) -#ifdef _MSC_VER -# define snprintf _snprintf -#endif +# include <winsock2.h> +# include <ws2tcpip.h> +# include <time.h> -struct timezone { - int tz_minuteswest; - int tz_dsttime; -}; +# define strcasecmp _stricmp +# define strdup _strdup +# ifdef _MSC_VER +# define snprintf _snprintf +# endif -extern int gettimeofday(struct timeval *tv, struct timezone *tz); extern int setenv(const char *name, const char *value, int overwrite); + extern int pipe(int pipefd[2]); extern int socketpair(int domain, int type, int protocol, int pipefd[2]); extern int fork(void); @@ -51,11 +45,11 @@ extern int inet_pton(int af, const char *src, void *dst); extern const char *inet_ntop(int af, const void *addr, char *host, size_t hostlen); /* MSYS autoconf is fucko. */ -#ifndef HAVE_WINSOCK2_H -#define HAVE_WINSOCK2_H -#endif +# ifndef HAVE_WINSOCK2_H +# define HAVE_WINSOCK2_H +# endif -#define HAVE_SELECT +# define HAVE_SELECT #endif |