00001 #ifndef HEADER_CURL_CONFIG_WIN32CE_H 00002 #define HEADER_CURL_CONFIG_WIN32CE_H 00003 /*************************************************************************** 00004 * _ _ ____ _ 00005 * Project ___| | | | _ \| | 00006 * / __| | | | |_) | | 00007 * | (__| |_| | _ <| |___ 00008 * \___|\___/|_| \_\_____| 00009 * 00010 * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. 00011 * 00012 * This software is licensed as described in the file COPYING, which 00013 * you should have received as part of this distribution. The terms 00014 * are also available at https://curl.haxx.se/docs/copyright.html. 00015 * 00016 * You may opt to use, copy, modify, merge, publish, distribute and/or sell 00017 * copies of the Software, and permit persons to whom the Software is 00018 * furnished to do so, under the terms of the COPYING file. 00019 * 00020 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 00021 * KIND, either express or implied. 00022 * 00023 ***************************************************************************/ 00024 00025 /* ================================================================ */ 00026 /* lib/config-win32ce.h - Hand crafted config file for windows ce */ 00027 /* ================================================================ */ 00028 00029 /* ---------------------------------------------------------------- */ 00030 /* HEADER FILES */ 00031 /* ---------------------------------------------------------------- */ 00032 00033 /* Define if you have the <arpa/inet.h> header file. */ 00034 /* #define HAVE_ARPA_INET_H 1 */ 00035 00036 /* Define if you have the <assert.h> header file. */ 00037 /* #define HAVE_ASSERT_H 1 */ 00038 00039 /* Define if you have the <crypto.h> header file. */ 00040 /* #define HAVE_CRYPTO_H 1 */ 00041 00042 /* Define if you have the <errno.h> header file. */ 00043 /* #define HAVE_ERRNO_H 1 */ 00044 00045 /* Define if you have the <err.h> header file. */ 00046 /* #define HAVE_ERR_H 1 */ 00047 00048 /* Define if you have the <fcntl.h> header file. */ 00049 #define HAVE_FCNTL_H 1 00050 00051 /* Define if you have the <getopt.h> header file. */ 00052 /* #define HAVE_GETOPT_H 1 */ 00053 00054 /* Define if you have the <io.h> header file. */ 00055 #define HAVE_IO_H 1 00056 00057 /* Define if you have the <limits.h> header file. */ 00058 #define HAVE_LIMITS_H 1 00059 00060 /* Define if you need the malloc.h header header file even with stdlib.h */ 00061 #define NEED_MALLOC_H 1 00062 00063 /* Define if you have the <netdb.h> header file. */ 00064 /* #define HAVE_NETDB_H 1 */ 00065 00066 /* Define if you have the <netinet/in.h> header file. */ 00067 /* #define HAVE_NETINET_IN_H 1 */ 00068 00069 /* Define if you have the <signal.h> header file. */ 00070 #define HAVE_SIGNAL_H 1 00071 00072 /* Define if you have the <sgtty.h> header file. */ 00073 /* #define HAVE_SGTTY_H 1 */ 00074 00075 /* Define if you have the <ssl.h> header file. */ 00076 /* #define HAVE_SSL_H 1 */ 00077 00078 /* Define if you have the <stdlib.h> header file. */ 00079 #define HAVE_STDLIB_H 1 00080 00081 /* Define if you have the <process.h> header file. */ 00082 /* #define HAVE_PROCESS_H 1 */ 00083 00084 /* Define if you have the <sys/param.h> header file. */ 00085 /* #define HAVE_SYS_PARAM_H 1 */ 00086 00087 /* Define if you have the <sys/select.h> header file. */ 00088 /* #define HAVE_SYS_SELECT_H 1 */ 00089 00090 /* Define if you have the <sys/socket.h> header file. */ 00091 /* #define HAVE_SYS_SOCKET_H 1 */ 00092 00093 /* Define if you have the <sys/sockio.h> header file. */ 00094 /* #define HAVE_SYS_SOCKIO_H 1 */ 00095 00096 /* Define if you have the <sys/stat.h> header file. */ 00097 #define HAVE_SYS_STAT_H 1 00098 00099 /* Define if you have the <sys/time.h> header file */ 00100 /* #define HAVE_SYS_TIME_H 1 */ 00101 00102 /* Define if you have the <sys/types.h> header file. */ 00103 /* #define HAVE_SYS_TYPES_H 1 */ 00104 00105 /* Define if you have the <sys/utime.h> header file */ 00106 #define HAVE_SYS_UTIME_H 1 00107 00108 /* Define if you have the <termio.h> header file. */ 00109 /* #define HAVE_TERMIO_H 1 */ 00110 00111 /* Define if you have the <termios.h> header file. */ 00112 /* #define HAVE_TERMIOS_H 1 */ 00113 00114 /* Define if you have the <time.h> header file. */ 00115 #define HAVE_TIME_H 1 00116 00117 /* Define if you have the <unistd.h> header file. */ 00118 #if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__) 00119 #define HAVE_UNISTD_H 1 00120 #endif 00121 00122 /* Define if you have the <windows.h> header file. */ 00123 #define HAVE_WINDOWS_H 1 00124 00125 /* Define if you have the <winsock.h> header file. */ 00126 #define HAVE_WINSOCK_H 1 00127 00128 /* Define if you have the <winsock2.h> header file. */ 00129 /* #define HAVE_WINSOCK2_H 1 */ 00130 00131 /* Define if you have the <ws2tcpip.h> header file. */ 00132 /* #define HAVE_WS2TCPIP_H 1 */ 00133 00134 /* ---------------------------------------------------------------- */ 00135 /* OTHER HEADER INFO */ 00136 /* ---------------------------------------------------------------- */ 00137 00138 /* Define if sig_atomic_t is an available typedef. */ 00139 #define HAVE_SIG_ATOMIC_T 1 00140 00141 /* Define if you have the ANSI C header files. */ 00142 #define STDC_HEADERS 1 00143 00144 /* Define if you can safely include both <sys/time.h> and <time.h>. */ 00145 /* #define TIME_WITH_SYS_TIME 1 */ 00146 00147 /* ---------------------------------------------------------------- */ 00148 /* FUNCTIONS */ 00149 /* ---------------------------------------------------------------- */ 00150 00151 /* Define if you have the closesocket function. */ 00152 #define HAVE_CLOSESOCKET 1 00153 00154 /* Define if you don't have vprintf but do have _doprnt. */ 00155 /* #define HAVE_DOPRNT 1 */ 00156 00157 /* Define if you have the gethostbyaddr function. */ 00158 #define HAVE_GETHOSTBYADDR 1 00159 00160 /* Define if you have the gethostname function. */ 00161 #define HAVE_GETHOSTNAME 1 00162 00163 /* Define if you have the getpass function. */ 00164 /* #define HAVE_GETPASS 1 */ 00165 00166 /* Define if you have the getservbyname function. */ 00167 #define HAVE_GETSERVBYNAME 1 00168 00169 /* Define if you have the gettimeofday function. */ 00170 /* #define HAVE_GETTIMEOFDAY 1 */ 00171 00172 /* Define if you have the inet_addr function. */ 00173 #define HAVE_INET_ADDR 1 00174 00175 /* Define if you have the ioctlsocket function. */ 00176 #define HAVE_IOCTLSOCKET 1 00177 00178 /* Define if you have a working ioctlsocket FIONBIO function. */ 00179 #define HAVE_IOCTLSOCKET_FIONBIO 1 00180 00181 /* Define if you have the perror function. */ 00182 #define HAVE_PERROR 1 00183 00184 /* Define if you have the RAND_screen function when using SSL */ 00185 #define HAVE_RAND_SCREEN 1 00186 00187 /* Define if you have the `RAND_status' function when using SSL. */ 00188 #define HAVE_RAND_STATUS 1 00189 00190 /* Define if you have the select function. */ 00191 #define HAVE_SELECT 1 00192 00193 /* Define if you have the setvbuf function. */ 00194 #define HAVE_SETVBUF 1 00195 00196 /* Define if you have the socket function. */ 00197 #define HAVE_SOCKET 1 00198 00199 /* Define if you have the strcasecmp function. */ 00200 /* #define HAVE_STRCASECMP 1 */ 00201 00202 /* Define if you have the strdup function. */ 00203 /* #define HAVE_STRDUP 1 */ 00204 00205 /* Define if you have the strftime function. */ 00206 /* #define HAVE_STRFTIME 1 */ 00207 00208 /* Define if you have the stricmp function. */ 00209 /* #define HAVE_STRICMP 1 */ 00210 00211 /* Define if you have the strncasecmp function. */ 00212 /* #define HAVE_STRNCASECMP 1 */ 00213 00214 /* Define if you have the strnicmp function. */ 00215 /* #define HAVE_STRNICMP 1 */ 00216 00217 /* Define if you have the strstr function. */ 00218 #define HAVE_STRSTR 1 00219 00220 /* Define if you have the strtoll function. */ 00221 #if defined(__MINGW32__) || defined(__WATCOMC__) 00222 #define HAVE_STRTOLL 1 00223 #endif 00224 00225 /* Define if you have the tcgetattr function. */ 00226 /* #define HAVE_TCGETATTR 1 */ 00227 00228 /* Define if you have the tcsetattr function. */ 00229 /* #define HAVE_TCSETATTR 1 */ 00230 00231 /* Define if you have the utime function */ 00232 #define HAVE_UTIME 1 00233 00234 /* Define if you have the getnameinfo function. */ 00235 #define HAVE_GETNAMEINFO 1 00236 00237 /* Define to the type qualifier of arg 1 for getnameinfo. */ 00238 #define GETNAMEINFO_QUAL_ARG1 const 00239 00240 /* Define to the type of arg 1 for getnameinfo. */ 00241 #define GETNAMEINFO_TYPE_ARG1 struct sockaddr * 00242 00243 /* Define to the type of arg 2 for getnameinfo. */ 00244 #define GETNAMEINFO_TYPE_ARG2 socklen_t 00245 00246 /* Define to the type of args 4 and 6 for getnameinfo. */ 00247 #define GETNAMEINFO_TYPE_ARG46 DWORD 00248 00249 /* Define to the type of arg 7 for getnameinfo. */ 00250 #define GETNAMEINFO_TYPE_ARG7 int 00251 00252 /* Define if you have the recv function. */ 00253 #define HAVE_RECV 1 00254 00255 /* Define to the type of arg 1 for recv. */ 00256 #define RECV_TYPE_ARG1 SOCKET 00257 00258 /* Define to the type of arg 2 for recv. */ 00259 #define RECV_TYPE_ARG2 char * 00260 00261 /* Define to the type of arg 3 for recv. */ 00262 #define RECV_TYPE_ARG3 int 00263 00264 /* Define to the type of arg 4 for recv. */ 00265 #define RECV_TYPE_ARG4 int 00266 00267 /* Define to the function return type for recv. */ 00268 #define RECV_TYPE_RETV int 00269 00270 /* Define if you have the recvfrom function. */ 00271 #define HAVE_RECVFROM 1 00272 00273 /* Define to the type of arg 1 for recvfrom. */ 00274 #define RECVFROM_TYPE_ARG1 SOCKET 00275 00276 /* Define to the type pointed by arg 2 for recvfrom. */ 00277 #define RECVFROM_TYPE_ARG2 char 00278 00279 /* Define to the type of arg 3 for recvfrom. */ 00280 #define RECVFROM_TYPE_ARG3 int 00281 00282 /* Define to the type of arg 4 for recvfrom. */ 00283 #define RECVFROM_TYPE_ARG4 int 00284 00285 /* Define to the type pointed by arg 5 for recvfrom. */ 00286 #define RECVFROM_TYPE_ARG5 struct sockaddr 00287 00288 /* Define to the type pointed by arg 6 for recvfrom. */ 00289 #define RECVFROM_TYPE_ARG6 int 00290 00291 /* Define to the function return type for recvfrom. */ 00292 #define RECVFROM_TYPE_RETV int 00293 00294 /* Define if you have the send function. */ 00295 #define HAVE_SEND 1 00296 00297 /* Define to the type of arg 1 for send. */ 00298 #define SEND_TYPE_ARG1 SOCKET 00299 00300 /* Define to the type qualifier of arg 2 for send. */ 00301 #define SEND_QUAL_ARG2 const 00302 00303 /* Define to the type of arg 2 for send. */ 00304 #define SEND_TYPE_ARG2 char * 00305 00306 /* Define to the type of arg 3 for send. */ 00307 #define SEND_TYPE_ARG3 int 00308 00309 /* Define to the type of arg 4 for send. */ 00310 #define SEND_TYPE_ARG4 int 00311 00312 /* Define to the function return type for send. */ 00313 #define SEND_TYPE_RETV int 00314 00315 /* ---------------------------------------------------------------- */ 00316 /* TYPEDEF REPLACEMENTS */ 00317 /* ---------------------------------------------------------------- */ 00318 00319 /* Define this if in_addr_t is not an available 'typedefed' type */ 00320 #define in_addr_t unsigned long 00321 00322 /* Define as the return type of signal handlers (int or void). */ 00323 #define RETSIGTYPE void 00324 00325 /* Define ssize_t if it is not an available 'typedefed' type */ 00326 #if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || defined(__POCC__) 00327 #elif defined(_WIN64) 00328 #define ssize_t __int64 00329 #else 00330 #define ssize_t int 00331 #endif 00332 00333 /* ---------------------------------------------------------------- */ 00334 /* TYPE SIZES */ 00335 /* ---------------------------------------------------------------- */ 00336 00337 /* The size of `int', as computed by sizeof. */ 00338 #define SIZEOF_INT 4 00339 00340 /* The size of `long double', as computed by sizeof. */ 00341 #define SIZEOF_LONG_DOUBLE 16 00342 00343 /* The size of `long long', as computed by sizeof. */ 00344 /* #define SIZEOF_LONG_LONG 8 */ 00345 00346 /* The size of `short', as computed by sizeof. */ 00347 #define SIZEOF_SHORT 2 00348 00349 /* The size of `size_t', as computed by sizeof. */ 00350 #if defined(_WIN64) 00351 # define SIZEOF_SIZE_T 8 00352 #else 00353 # define SIZEOF_SIZE_T 4 00354 #endif 00355 00356 /* ---------------------------------------------------------------- */ 00357 /* STRUCT RELATED */ 00358 /* ---------------------------------------------------------------- */ 00359 00360 /* Define this if you have struct sockaddr_storage */ 00361 /* #define HAVE_STRUCT_SOCKADDR_STORAGE 1 */ 00362 00363 /* Define this if you have struct timeval */ 00364 #define HAVE_STRUCT_TIMEVAL 1 00365 00366 /* Define this if struct sockaddr_in6 has the sin6_scope_id member */ 00367 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 00368 00369 /* ---------------------------------------------------------------- */ 00370 /* COMPILER SPECIFIC */ 00371 /* ---------------------------------------------------------------- */ 00372 00373 /* Undef keyword 'const' if it does not work. */ 00374 /* #undef const */ 00375 00376 /* Define to avoid VS2005 complaining about portable C functions */ 00377 #if defined(_MSC_VER) && (_MSC_VER >= 1400) 00378 #define _CRT_SECURE_NO_DEPRECATE 1 00379 #define _CRT_NONSTDC_NO_DEPRECATE 1 00380 #endif 00381 00382 /* VS2005 and later dafault size for time_t is 64-bit, unless */ 00383 /* _USE_32BIT_TIME_T has been defined to get a 32-bit time_t. */ 00384 #if defined(_MSC_VER) && (_MSC_VER >= 1400) 00385 # ifndef _USE_32BIT_TIME_T 00386 # define SIZEOF_TIME_T 8 00387 # else 00388 # define SIZEOF_TIME_T 4 00389 # endif 00390 #endif 00391 00392 /* ---------------------------------------------------------------- */ 00393 /* LARGE FILE SUPPORT */ 00394 /* ---------------------------------------------------------------- */ 00395 00396 #if defined(_MSC_VER) && !defined(_WIN32_WCE) 00397 # if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64) 00398 # define USE_WIN32_LARGE_FILES 00399 # else 00400 # define USE_WIN32_SMALL_FILES 00401 # endif 00402 #endif 00403 00404 #if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES) 00405 # define USE_WIN32_SMALL_FILES 00406 #endif 00407 00408 /* ---------------------------------------------------------------- */ 00409 /* LDAP SUPPORT */ 00410 /* ---------------------------------------------------------------- */ 00411 00412 #define USE_WIN32_LDAP 1 00413 #undef HAVE_LDAP_URL_PARSE 00414 00415 /* ---------------------------------------------------------------- */ 00416 /* ADDITIONAL DEFINITIONS */ 00417 /* ---------------------------------------------------------------- */ 00418 00419 /* Define cpu-machine-OS */ 00420 #undef OS 00421 #define OS "i386-pc-win32ce" 00422 00423 /* Name of package */ 00424 #define PACKAGE "curl" 00425 00426 /* ---------------------------------------------------------------- */ 00427 /* WinCE */ 00428 /* ---------------------------------------------------------------- */ 00429 00430 #ifndef UNICODE 00431 # define UNICODE 00432 #endif 00433 00434 #ifndef _UNICODE 00435 # define _UNICODE 00436 #endif 00437 00438 #define CURL_DISABLE_FILE 1 00439 #define CURL_DISABLE_TELNET 1 00440 #define CURL_DISABLE_LDAP 1 00441 00442 #define ENOSPC 1 00443 #define ENOMEM 2 00444 #define EAGAIN 3 00445 00446 extern int stat(const char *path, struct stat *buffer); 00447 00448 #endif /* HEADER_CURL_CONFIG_WIN32CE_H */