Remove unneeded 'HAVE_*' defines.
[platform/upstream/curl.git] / lib / config-win32ce.h
1 #ifndef __LIB_CONFIG_WIN32CE_H
2 #define __LIB_CONFIG_WIN32CE_H
3
4 /* ================================================================ */
5 /*  lib/config-win32ce.h - Hand crafted config file for windows ce  */
6 /* ================================================================ */
7
8 /* ---------------------------------------------------------------- */
9 /*                          HEADER FILES                            */
10 /* ---------------------------------------------------------------- */
11
12 /* Define if you have the <arpa/inet.h> header file.  */
13 /* #define HAVE_ARPA_INET_H 1 */
14
15 /* Define if you have the <assert.h> header file.  */
16 /* #define HAVE_ASSERT_H 1 */
17
18 /* Define if you have the <crypto.h> header file.  */
19 /* #define HAVE_CRYPTO_H 1 */
20
21 /* Define if you have the <dlfcn.h> header file.  */
22 /* #define HAVE_DLFCN_H 1 */
23
24 /* Define if you have the <err.h> header file.  */
25 /* #define HAVE_ERR_H 1 */
26
27 /* Define if you have the <fcntl.h> header file.  */
28 #define HAVE_FCNTL_H 1
29
30 /* Define if you have the <getopt.h> header file.  */
31 /* #define HAVE_GETOPT_H 1 */
32
33 /* Define if you have the <io.h> header file.  */
34 #define HAVE_IO_H 1
35
36 /* Define if you need the malloc.h header header file even with stdlib.h  */
37 #define NEED_MALLOC_H 1
38
39 /* Define if you have the <netdb.h> header file.  */
40 /* #define HAVE_NETDB_H 1 */
41
42 /* Define if you have the <netinet/in.h> header file.  */
43 /* #define HAVE_NETINET_IN_H 1 */
44
45 /* Define if you have the <signal.h> header file. */
46 #define HAVE_SIGNAL_H 1
47
48 /* Define if you have the <sgtty.h> header file.  */
49 /* #define HAVE_SGTTY_H 1 */
50
51 /* Define if you have the <ssl.h> header file.  */
52 /* #define HAVE_SSL_H 1 */
53
54 /* Define if you have the <stdlib.h> header file.  */
55 #define HAVE_STDLIB_H 1
56
57 /* Define if you have the <process.h> header file.  */
58 #define HAVE_PROCESS_H 1
59
60 /* Define if you have the <sys/param.h> header file.  */
61 /* #define HAVE_SYS_PARAM_H 1 */
62
63 /* Define if you have the <sys/select.h> header file.  */
64 /* #define HAVE_SYS_SELECT_H 1 */
65
66 /* Define if you have the <sys/socket.h> header file.  */
67 /* #define HAVE_SYS_SOCKET_H 1 */
68
69 /* Define if you have the <sys/sockio.h> header file.  */
70 /* #define HAVE_SYS_SOCKIO_H 1 */
71
72 /* Define if you have the <sys/stat.h> header file.  */
73 #define HAVE_SYS_STAT_H 1
74
75 /* Define if you have the <sys/time.h> header file */
76 /* #define HAVE_SYS_TIME_H 1 */
77
78 /* Define if you have the <sys/types.h> header file.  */
79 /* #define HAVE_SYS_TYPES_H 1 */
80
81 /* Define if you have the <sys/utime.h> header file */
82 #define HAVE_SYS_UTIME_H 1
83
84 /* Define if you have the <termio.h> header file.  */
85 /* #define HAVE_TERMIO_H 1 */
86
87 /* Define if you have the <termios.h> header file.  */
88 /* #define HAVE_TERMIOS_H 1 */
89
90 /* Define if you have the <time.h> header file.  */
91 #define HAVE_TIME_H 1
92
93 /* Define if you have the <unistd.h> header file.  */
94 #if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__)
95 #define HAVE_UNISTD_H 1
96 #endif
97
98 /* Define if you have the <windows.h> header file.  */
99 #define HAVE_WINDOWS_H 1
100
101 /* Define if you have the <winsock.h> header file.  */
102 #define HAVE_WINSOCK_H 1
103
104 /* Define if you have the <winsock2.h> header file.  */
105 /* #define HAVE_WINSOCK2_H 1 */
106
107 /* Define if you have the <ws2tcpip.h> header file.  */
108 /* #define HAVE_WS2TCPIP_H 1 */
109
110 /* ---------------------------------------------------------------- */
111 /*                        OTHER HEADER INFO                         */
112 /* ---------------------------------------------------------------- */
113
114 /* Define if sig_atomic_t is an available typedef. */
115 #define HAVE_SIG_ATOMIC_T 1
116
117 /* Define if you have the ANSI C header files.  */
118 #define STDC_HEADERS 1
119
120 /* Define if you can safely include both <sys/time.h> and <time.h>.  */
121 /* #define TIME_WITH_SYS_TIME 1 */
122
123 /* ---------------------------------------------------------------- */
124 /*                             FUNCTIONS                            */
125 /* ---------------------------------------------------------------- */
126
127 /* Define if you have the closesocket function.  */
128 #define HAVE_CLOSESOCKET 1
129
130 /* Define if you don't have vprintf but do have _doprnt.  */
131 /* #define HAVE_DOPRNT 1 */
132
133 /* Define if you have the gethostbyaddr function.  */
134 #define HAVE_GETHOSTBYADDR 1
135
136 /* Define if you have the gethostname function.  */
137 #define HAVE_GETHOSTNAME 1
138
139 /* Define if you have the getpass function.  */
140 /* #define HAVE_GETPASS 1 */
141
142 /* Define if you have the getservbyname function.  */
143 #define HAVE_GETSERVBYNAME 1
144
145 /* Define if you have the gettimeofday function.  */
146 /*  #define HAVE_GETTIMEOFDAY 1 */
147
148 /* Define if you have the inet_addr function.  */
149 #define HAVE_INET_ADDR 1
150
151 /* Define if you have the inet_ntoa function.  */
152 #define HAVE_INET_NTOA 1
153
154 /* Define if you have the ioctlsocket function.  */
155 #define HAVE_IOCTLSOCKET 1
156
157 /* Define if you have the perror function.  */
158 #define HAVE_PERROR 1
159
160 /* Define if you have the RAND_screen function when using SSL  */
161 #define HAVE_RAND_SCREEN 1
162
163 /* Define if you have the `RAND_status' function when using SSL. */
164 #define HAVE_RAND_STATUS 1
165
166 /* Define if you have the select function.  */
167 #define HAVE_SELECT 1
168
169 /* Define if you have the setvbuf function.  */
170 #define HAVE_SETVBUF 1
171
172 /* Define if you have the socket function.  */
173 #define HAVE_SOCKET 1
174
175 /* Define if you have the strcasecmp function.  */
176 /* #define HAVE_STRCASECMP 1 */
177
178 /* Define if you have the stricmp function.  */
179 /* #define HAVE_STRICMP 1 */
180
181 /* Define if you have the strdup function.  */
182 /* #define HAVE_STRDUP 1 */
183
184 /* Define if you have the strftime function.  */
185 /* #define HAVE_STRFTIME 1 */
186
187 /* Define if you have the strstr function.  */
188 #define HAVE_STRSTR 1
189
190 /* Define if you have the strtoll function.  */
191 #if defined(__MINGW32__) || defined(__WATCOMC__)
192 #define HAVE_STRTOLL 1
193 #endif
194
195 /* Define if you have the tcgetattr function.  */
196 /* #define HAVE_TCGETATTR 1 */
197
198 /* Define if you have the tcsetattr function.  */
199 /* #define HAVE_TCSETATTR 1 */
200
201 /* Define if you have the utime function */
202 #define HAVE_UTIME 1
203
204 /* Define if you have the getnameinfo function. */
205 #define HAVE_GETNAMEINFO 1
206
207 /* Define to the type qualifier of arg 1 for getnameinfo. */
208 #define GETNAMEINFO_QUAL_ARG1 const
209
210 /* Define to the type of arg 1 for getnameinfo. */
211 #define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
212
213 /* Define to the type of arg 2 for getnameinfo. */
214 #define GETNAMEINFO_TYPE_ARG2 socklen_t
215
216 /* Define to the type of args 4 and 6 for getnameinfo. */
217 #define GETNAMEINFO_TYPE_ARG46 DWORD
218
219 /* Define to the type of arg 7 for getnameinfo. */
220 #define GETNAMEINFO_TYPE_ARG7 int
221
222 /* Define if you have the recv function. */
223 #define HAVE_RECV 1
224
225 /* Define to the type of arg 1 for recv. */
226 #define RECV_TYPE_ARG1 SOCKET
227
228 /* Define to the type of arg 2 for recv. */
229 #define RECV_TYPE_ARG2 char *
230
231 /* Define to the type of arg 3 for recv. */
232 #define RECV_TYPE_ARG3 int
233
234 /* Define to the type of arg 4 for recv. */
235 #define RECV_TYPE_ARG4 int
236
237 /* Define to the function return type for recv. */
238 #define RECV_TYPE_RETV int
239
240 /* Define if you have the send function. */
241 #define HAVE_SEND 1
242
243 /* Define to the type of arg 1 for send. */
244 #define SEND_TYPE_ARG1 SOCKET
245
246 /* Define to the type qualifier of arg 2 for send. */
247 #define SEND_QUAL_ARG2 const
248
249 /* Define to the type of arg 2 for send. */
250 #define SEND_TYPE_ARG2 char *
251
252 /* Define to the type of arg 3 for send. */
253 #define SEND_TYPE_ARG3 int
254
255 /* Define to the type of arg 4 for send. */
256 #define SEND_TYPE_ARG4 int
257
258 /* Define to the function return type for send. */
259 #define SEND_TYPE_RETV int
260
261 /* ---------------------------------------------------------------- */
262 /*                       TYPEDEF REPLACEMENTS                       */
263 /* ---------------------------------------------------------------- */
264
265 /* Define this if in_addr_t is not an available 'typedefed' type */
266 #define in_addr_t unsigned long
267
268 /* Define as the return type of signal handlers (int or void).  */
269 #define RETSIGTYPE void
270
271 /* Define ssize_t if it is not an available 'typedefed' type */
272 #if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || defined(__POCC__)
273 #elif defined(_WIN64)
274 #define ssize_t __int64
275 #else
276 #define ssize_t int
277 #endif
278
279 /* Define to 'int' if socklen_t is not an available 'typedefed' type */
280 #ifndef HAVE_WS2TCPIP_H
281 #define socklen_t int
282 #endif
283
284 /* ---------------------------------------------------------------- */
285 /*                            TYPE SIZES                            */
286 /* ---------------------------------------------------------------- */
287
288 /* The number of bytes in a long double.  */
289 #define SIZEOF_LONG_DOUBLE 16
290
291 /* The number of bytes in a long long.  */
292 /* #define SIZEOF_LONG_LONG 8 */
293
294 /* Undef SIZEOF_CURL_OFF_T if already defined. */
295 #ifdef SIZEOF_CURL_OFF_T
296 #undef SIZEOF_CURL_OFF_T
297 #endif
298
299 /* Define SIZEOF_CURL_OFF_T as computed by sizeof(curl_off_t) */
300 #define SIZEOF_CURL_OFF_T 4
301
302 /* ---------------------------------------------------------------- */
303 /*                          STRUCT RELATED                          */
304 /* ---------------------------------------------------------------- */
305
306 /* Define this if you have struct sockaddr_storage */
307 /* #define HAVE_STRUCT_SOCKADDR_STORAGE 1 */
308
309 /* Define this if you have struct timeval */
310 #define HAVE_STRUCT_TIMEVAL 1
311
312 /* ---------------------------------------------------------------- */
313 /*                        COMPILER SPECIFIC                         */
314 /* ---------------------------------------------------------------- */
315
316 /* Undef keyword 'const' if it does not work.  */
317 /* #undef const */
318
319 /* ---------------------------------------------------------------- */
320 /*                        LDAP LIBRARY FILES                        */
321 /* ---------------------------------------------------------------- */
322
323 /* lber dynamic library file */
324 /* #define DL_LBER_FILE */
325
326 /* ldap dynamic library file */
327 /* #define DL_LDAP_FILE "wldap32.dll" */
328
329 /* ---------------------------------------------------------------- */
330 /*                       ADDITIONAL DEFINITIONS                     */
331 /* ---------------------------------------------------------------- */
332
333 /* Defines set for VS2005 to _not_ deprecate a few functions we use. */
334 #define _CRT_SECURE_NO_DEPRECATE 1
335 #define _CRT_NONSTDC_NO_DEPRECATE 1
336
337 /* Define cpu-machine-OS */
338 #undef OS
339 #define OS "i386-pc-win32ce"
340
341 /* Name of package */
342 #define PACKAGE "curl"
343
344 /* ---------------------------------------------------------------- */
345 /*                       WinCE                                      */
346 /* ---------------------------------------------------------------- */
347
348 #define CURL_DISABLE_FILE 1
349 #define CURL_DISABLE_TELNET 1
350 #define CURL_DISABLE_LDAP 1
351 #define WITHOUT_MM_LIB 1
352
353 #ifdef HAVE_WINDOWS_H
354 #  ifndef WIN32_LEAN_AND_MEAN
355 #    define WIN32_LEAN_AND_MEAN
356 #  endif
357 #  include <windows.h>
358 #  ifdef HAVE_WINSOCK2_H
359 #    include <winsock2.h>
360 #    ifdef HAVE_WS2TCPIP_H
361 #       include <ws2tcpip.h>
362 #    endif
363 #  else
364 #    ifdef HAVE_WINSOCK_H
365 #      include <winsock.h>
366 #    endif
367 #  endif
368 #  include <process.h>
369 #endif
370
371 #define ENOSPC 1
372 #define ENOMEM 2
373 #define EAGAIN 3
374
375 extern int stat(const char *path,struct stat *buffer );
376
377 #endif /* __LIB_CONFIG_WIN32CE_H */