1 #ifndef __SRC_CONFIG_WIN32_H
2 #define __SRC_CONFIG_WIN32_H
4 /* ================================================================ */
5 /* src/config-win32.h - Hand crafted config file for windows */
6 /* ================================================================ */
8 /* ---------------------------------------------------------------- */
10 /* ---------------------------------------------------------------- */
12 /* Define if you have the <fcntl.h> header file. */
13 #define HAVE_FCNTL_H 1
15 /* Define if you have the <io.h> header file. */
18 /* Define if you have the <limits.h> header file. */
19 #define HAVE_LIMITS_H 1
21 /* Define if you have the <locale.h> header file. */
22 #define HAVE_LOCALE_H 1
24 /* Define if you have the <signal.h> header file. */
25 #define HAVE_SIGNAL_H 1
27 /* Define if you have the <sys/time.h> header file */
28 /* #define HAVE_SYS_TIME_H 1 */
30 /* Define if you have the <sys/types.h> header file. */
31 #define HAVE_SYS_TYPES_H 1
33 /* Define if you have the <time.h> header file. */
36 /* Define if you have the <sys/utime.h> header file. */
38 #define HAVE_SYS_UTIME_H 1
41 /* Define if you have the <unistd.h> header file. */
42 #if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__)
43 #define HAVE_UNISTD_H 1
46 /* Define if you have the <windows.h> header file. */
47 #define HAVE_WINDOWS_H 1
49 /* Define if you have the <winsock.h> header file. */
50 #define HAVE_WINSOCK_H 1
52 /* Define if you have the <winsock2.h> header file. */
53 #define HAVE_WINSOCK2_H 1
55 /* Define if you have the <ws2tcpip.h> header file. */
56 #define HAVE_WS2TCPIP_H 1
58 /* ---------------------------------------------------------------- */
59 /* OTHER HEADER INFO */
60 /* ---------------------------------------------------------------- */
62 /* Define if sig_atomic_t is an available typedef. */
63 #define HAVE_SIG_ATOMIC_T 1
65 /* Define if you have the ANSI C header files. */
66 #define STDC_HEADERS 1
68 /* Define if you can safely include both <sys/time.h> and <time.h>. */
69 /* #define TIME_WITH_SYS_TIME 1 */
71 /* ---------------------------------------------------------------- */
73 /* ---------------------------------------------------------------- */
75 /* Define if you have the setmode function. */
76 #define HAVE_SETMODE 1
78 /* Define if you have the ftruncate function. */
79 #define HAVE_FTRUNCATE 1
81 /* Define if you have the setlocale function. */
82 #define HAVE_SETLOCALE 1
84 /* Define if you have the strdup function. */
87 /* Define if you have the stricmp function. */
88 #define HAVE_STRICMP 1
90 /* Define if you have the utime function */
95 /* Define if you have the recv function. */
98 /* Define to the type of arg 1 for recv. */
99 #define RECV_TYPE_ARG1 SOCKET
101 /* Define to the type of arg 2 for recv. */
102 #define RECV_TYPE_ARG2 char *
104 /* Define to the type of arg 3 for recv. */
105 #define RECV_TYPE_ARG3 int
107 /* Define to the type of arg 4 for recv. */
108 #define RECV_TYPE_ARG4 int
110 /* Define to the function return type for recv. */
111 #define RECV_TYPE_RETV int
113 /* Define if you have the recvfrom function. */
114 #define HAVE_RECVFROM 1
116 /* Define to the type of arg 1 for recvfrom. */
117 #define RECVFROM_TYPE_ARG1 SOCKET
119 /* Define to the type pointed by arg 2 for recvfrom. */
120 #define RECVFROM_TYPE_ARG2 char
122 /* Define to the type of arg 3 for recvfrom. */
123 #define RECVFROM_TYPE_ARG3 int
125 /* Define to the type of arg 4 for recvfrom. */
126 #define RECVFROM_TYPE_ARG4 int
128 /* Define to the type pointed by arg 5 for recvfrom. */
129 #define RECVFROM_TYPE_ARG5 struct sockaddr
131 /* Define to the type pointed by arg 6 for recvfrom. */
132 #define RECVFROM_TYPE_ARG6 int
134 /* Define to the function return type for recvfrom. */
135 #define RECVFROM_TYPE_RETV int
137 /* Define if you have the send function. */
140 /* Define to the type of arg 1 for send. */
141 #define SEND_TYPE_ARG1 SOCKET
143 /* Define to the type qualifier of arg 2 for send. */
144 #define SEND_QUAL_ARG2 const
146 /* Define to the type of arg 2 for send. */
147 #define SEND_TYPE_ARG2 char *
149 /* Define to the type of arg 3 for send. */
150 #define SEND_TYPE_ARG3 int
152 /* Define to the type of arg 4 for send. */
153 #define SEND_TYPE_ARG4 int
155 /* Define to the function return type for send. */
156 #define SEND_TYPE_RETV int
158 /* ---------------------------------------------------------------- */
159 /* TYPEDEF REPLACEMENTS */
160 /* ---------------------------------------------------------------- */
162 /* Define this if in_addr_t is not an available 'typedefed' type */
163 #define in_addr_t unsigned long
165 /* Define as the return type of signal handlers (int or void). */
166 #define RETSIGTYPE void
168 #if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || defined(__POCC__) || \
170 #elif defined(_WIN64)
171 #define ssize_t __int64
176 /* ---------------------------------------------------------------- */
178 /* ---------------------------------------------------------------- */
180 /* Define this if you have struct sockaddr_storage */
182 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
185 /* Define this if you have struct timeval */
186 #define HAVE_STRUCT_TIMEVAL 1
188 /* ---------------------------------------------------------------- */
189 /* COMPILER SPECIFIC */
190 /* ---------------------------------------------------------------- */
192 /* Undef keyword 'const' if it does not work. */
195 /* Windows should not have HAVE_GMTIME_R defined */
196 /* #undef HAVE_GMTIME_R */
198 /* Define if the compiler supports C99 variadic macro style. */
199 #if defined(_MSC_VER) && (_MSC_VER >= 1400)
200 #define HAVE_VARIADIC_MACROS_C99 1
203 /* Define if the compiler supports the 'long long' data type. */
204 #if defined(__MINGW32__) || defined(__WATCOMC__)
205 #define HAVE_LONGLONG 1
208 /* Define to avoid VS2005 complaining about portable C functions */
209 #if defined(_MSC_VER) && (_MSC_VER >= 1400)
210 #define _CRT_SECURE_NO_DEPRECATE 1
211 #define _CRT_NONSTDC_NO_DEPRECATE 1
214 /* VS2005 and later dafault size for time_t is 64-bit, unless */
215 /* _USE_32BIT_TIME_T has been defined to get a 32-bit time_t. */
216 #if defined(_MSC_VER) && (_MSC_VER >= 1400)
217 # ifndef _USE_32BIT_TIME_T
218 # define SIZEOF_TIME_T 8
220 # define SIZEOF_TIME_T 4
224 /* VS2008 does not support Windows build targets prior to WinXP, */
225 /* so, if no build target has been defined we will target WinXP. */
226 #if defined(_MSC_VER) && (_MSC_VER >= 1500)
227 # ifndef _WIN32_WINNT
228 # define _WIN32_WINNT 0x0501
231 # define WINVER 0x0501
233 # if (_WIN32_WINNT < 0x0501) || (WINVER < 0x0501)
234 # error VS2008 does not support Windows build targets prior to WinXP
238 /* ---------------------------------------------------------------- */
239 /* LARGE FILE SUPPORT */
240 /* ---------------------------------------------------------------- */
242 #if defined(_MSC_VER) && !defined(_WIN32_WCE)
243 # if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
244 # define USE_WIN32_LARGE_FILES
246 # define USE_WIN32_SMALL_FILES
250 #if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES)
251 # define USE_WIN32_SMALL_FILES
254 /* ---------------------------------------------------------------- */
255 /* ADDITIONAL DEFINITIONS */
256 /* ---------------------------------------------------------------- */
258 /* Define cpu-machine-OS */
260 #define OS "i386-pc-win32"
263 /* Define to 1 if you want the built-in manual */
267 #endif /* __SRC_CONFIG_WIN32_H */