73
73
/* ---------------------------------------------------------------- */
75
/* Define if you have the setmode function. */
76
#define HAVE_SETMODE 1
78
75
/* Define if you have the ftruncate function. */
79
76
#define HAVE_FTRUNCATE 1
78
/* Define if you have the ioctlsocket function. */
79
#define HAVE_IOCTLSOCKET 1
81
/* Define if you have a working ioctlsocket FIONBIO function. */
82
#define HAVE_IOCTLSOCKET_FIONBIO 1
81
84
/* Define if you have the setlocale function. */
82
85
#define HAVE_SETLOCALE 1
87
/* Define if you have the setmode function. */
88
#define HAVE_SETMODE 1
90
/* Define if you have the strcasecmp function. */
91
/* #define HAVE_STRCASECMP 1 */
84
93
/* Define if you have the strdup function. */
85
94
#define HAVE_STRDUP 1
87
96
/* Define if you have the stricmp function. */
88
97
#define HAVE_STRICMP 1
99
/* Define if you have the strncasecmp function. */
100
/* #define HAVE_STRNCASECMP 1 */
102
/* Define if you have the strnicmp function. */
103
#define HAVE_STRNICMP 1
90
105
/* Define if you have the utime function */
91
106
#ifndef __BORLANDC__
92
107
#define HAVE_UTIME 1
110
125
/* Define to the function return type for recv. */
111
126
#define RECV_TYPE_RETV int
128
/* Define if you have the recvfrom function. */
129
#define HAVE_RECVFROM 1
131
/* Define to the type of arg 1 for recvfrom. */
132
#define RECVFROM_TYPE_ARG1 SOCKET
134
/* Define to the type pointed by arg 2 for recvfrom. */
135
#define RECVFROM_TYPE_ARG2 char
137
/* Define to the type of arg 3 for recvfrom. */
138
#define RECVFROM_TYPE_ARG3 int
140
/* Define to the type of arg 4 for recvfrom. */
141
#define RECVFROM_TYPE_ARG4 int
143
/* Define to the type pointed by arg 5 for recvfrom. */
144
#define RECVFROM_TYPE_ARG5 struct sockaddr
146
/* Define to the type pointed by arg 6 for recvfrom. */
147
#define RECVFROM_TYPE_ARG6 int
149
/* Define to the function return type for recvfrom. */
150
#define RECVFROM_TYPE_RETV int
113
152
/* Define if you have the send function. */
114
153
#define HAVE_SEND 1
161
200
/* Define this if you have struct timeval */
162
201
#define HAVE_STRUCT_TIMEVAL 1
203
/* Define this if struct sockaddr_in6 has the sin6_scope_id member */
204
#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
206
/* ---------------------------------------------------------------- */
207
/* Watt-32 tcp/ip SPECIFIC */
208
/* ---------------------------------------------------------------- */
215
#undef HAVE_WINSOCK_H
216
#undef HAVE_WINSOCK2_H
217
#undef HAVE_WS2TCPIP_H
218
#define HAVE_GETADDRINFO
219
#define HAVE_GETNAMEINFO
220
#define HAVE_SYS_IOCTL_H
221
#define HAVE_SYS_SOCKET_H
222
#define HAVE_NETINET_IN_H
224
#define HAVE_ARPA_INET_H
225
#define HAVE_FREEADDRINFO
164
230
/* ---------------------------------------------------------------- */
165
231
/* COMPILER SPECIFIC */
166
232
/* ---------------------------------------------------------------- */
200
/* VS2008 does not support Windows build targets prior to WinXP, */
201
/* so, if no build target has been defined we will target WinXP. */
266
/* Officially, Microsoft's Windows SDK versions 6.X do not support Windows
267
2000 as a supported build target. VS2008 default installations provide an
268
embedded Windows SDK v6.0A along with the claim that Windows 2000 is a
269
valid build target for VS2008. Popular belief is that binaries built using
270
Windows SDK versions 6.X and Windows 2000 as a build target are functional */
271
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
272
# define VS2008_MINIMUM_TARGET 0x0500
275
/* When no build target is specified VS2008 default build target is Windows
276
Vista, which leaves out even Winsows XP. If no build target has been given
277
for VS2008 we will target the minimum Officially supported build target,
278
which happens to be Windows XP. */
279
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
280
# define VS2008_DEFAULT_TARGET 0x0501
283
/* VS2008 default target settings and minimum build target check */
202
284
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
203
285
# ifndef _WIN32_WINNT
204
# define _WIN32_WINNT 0x0501
286
# define _WIN32_WINNT VS2008_DEFAULT_TARGET
207
# define WINVER 0x0501
209
# if (_WIN32_WINNT < 0x0501) || (WINVER < 0x0501)
210
# error VS2008 does not support Windows build targets prior to WinXP
289
# define WINVER VS2008_DEFAULT_TARGET
291
# if (_WIN32_WINNT < VS2008_MINIMUM_TARGET) || (WINVER < VS2008_MINIMUM_TARGET)
292
# error VS2008 does not support Windows build targets prior to Windows 2000
296
/* Availability of freeaddrinfo, getaddrinfo and getnameinfo functions is
297
quite convoluted, compiler dependant and in some cases even build target
299
#if defined(HAVE_WS2TCPIP_H)
300
# if defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501)
301
# define HAVE_FREEADDRINFO 1
302
# define HAVE_GETADDRINFO 1
303
# define HAVE_GETNAMEINFO 1
304
# elif defined(_MSC_VER) && (_MSC_VER >= 1200)
305
# define HAVE_FREEADDRINFO 1
306
# define HAVE_GETADDRINFO 1
307
# define HAVE_GETNAMEINFO 1
311
/* ---------------------------------------------------------------- */
312
/* LARGE FILE SUPPORT */
313
/* ---------------------------------------------------------------- */
315
#if defined(_MSC_VER) && !defined(_WIN32_WCE)
316
# if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
317
# define USE_WIN32_LARGE_FILES
319
# define USE_WIN32_SMALL_FILES
323
#if defined(__MINGW32__) && !defined(USE_WIN32_LARGE_FILES)
324
# define USE_WIN32_LARGE_FILES
327
#if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES)
328
# define USE_WIN32_SMALL_FILES
214
331
/* ---------------------------------------------------------------- */