aboutsummaryrefslogtreecommitdiff
path: root/src/include/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/platform.h')
-rw-r--r--src/include/platform.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/include/platform.h b/src/include/platform.h
index 20d4df52..05fe1cd4 100644
--- a/src/include/platform.h
+++ b/src/include/platform.h
@@ -94,7 +94,7 @@
94#if HAVE_SYS_SOCKET_H 94#if HAVE_SYS_SOCKET_H
95#include <sys/socket.h> 95#include <sys/socket.h>
96#endif 96#endif
97#if defined(_WIN32) && !defined(__CYGWIN__) 97#if defined(_WIN32) && ! defined(__CYGWIN__)
98#ifndef WIN32_LEAN_AND_MEAN 98#ifndef WIN32_LEAN_AND_MEAN
99/* Do not include unneeded parts of W32 headers. */ 99/* Do not include unneeded parts of W32 headers. */
100#define WIN32_LEAN_AND_MEAN 1 100#define WIN32_LEAN_AND_MEAN 1
@@ -103,28 +103,28 @@
103#include <ws2tcpip.h> 103#include <ws2tcpip.h>
104#endif /* _WIN32 && !__CYGWIN__ */ 104#endif /* _WIN32 && !__CYGWIN__ */
105 105
106#if defined(__CYGWIN__) && !defined(_SYS_TYPES_FD_SET) 106#if defined(__CYGWIN__) && ! defined(_SYS_TYPES_FD_SET)
107/* Do not define __USE_W32_SOCKETS under Cygwin! */ 107/* Do not define __USE_W32_SOCKETS under Cygwin! */
108#error Cygwin with winsock fd_set is not supported 108#error Cygwin with winsock fd_set is not supported
109#endif 109#endif
110 110
111#if defined(_WIN32) && !defined(__CYGWIN__) 111#if defined(_WIN32) && ! defined(__CYGWIN__)
112#define sleep(seconds) ((SleepEx((seconds)*1000, 1)==0)?0:(seconds)) 112#define sleep(seconds) ((SleepEx ((seconds) * 1000, 1)==0) ? 0 : (seconds))
113#define usleep(useconds) ((SleepEx((useconds)/1000, 1)==0)?0:-1) 113#define usleep(useconds) ((SleepEx ((useconds) / 1000, 1)==0) ? 0 : -1)
114#endif 114#endif
115 115
116#if defined(_MSC_FULL_VER) && !defined (_SSIZE_T_DEFINED) 116#if defined(_MSC_FULL_VER) && ! defined (_SSIZE_T_DEFINED)
117#define _SSIZE_T_DEFINED 117#define _SSIZE_T_DEFINED
118typedef intptr_t ssize_t; 118typedef intptr_t ssize_t;
119#endif /* !_SSIZE_T_DEFINED */ 119#endif /* !_SSIZE_T_DEFINED */
120 120
121#if !defined(_WIN32) || defined(__CYGWIN__) 121#if ! defined(_WIN32) || defined(__CYGWIN__)
122typedef time_t _MHD_TIMEVAL_TV_SEC_TYPE; 122typedef time_t _MHD_TIMEVAL_TV_SEC_TYPE;
123#else /* _WIN32 && ! __CYGWIN__ */ 123#else /* _WIN32 && ! __CYGWIN__ */
124typedef long _MHD_TIMEVAL_TV_SEC_TYPE; 124typedef long _MHD_TIMEVAL_TV_SEC_TYPE;
125#endif /* _WIN32 && ! __CYGWIN__ */ 125#endif /* _WIN32 && ! __CYGWIN__ */
126 126
127#if !defined(IPPROTO_IPV6) && defined(_MSC_FULL_VER) && _WIN32_WINNT >= 0x0501 127#if ! defined(IPPROTO_IPV6) && defined(_MSC_FULL_VER) && _WIN32_WINNT >= 0x0501
128/* VC use IPPROTO_IPV6 as part of enum */ 128/* VC use IPPROTO_IPV6 as part of enum */
129#define IPPROTO_IPV6 IPPROTO_IPV6 129#define IPPROTO_IPV6 IPPROTO_IPV6
130#endif 130#endif