1 #ifndef HEADER_CURL_CONFIG_WIN32CE_H 2 #define HEADER_CURL_CONFIG_WIN32CE_H 3 /*************************************************************************** 4 * _ _ ____ _ 5 * Project ___| | | | _ \| | 6 * / __| | | | |_) | | 7 * | (__| |_| | _ <| |___ 8 * \___|\___/|_| \_\_____| 9 * 10 * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 11 * 12 * This software is licensed as described in the file COPYING, which 13 * you should have received as part of this distribution. The terms 14 * are also available at https://curl.se/docs/copyright.html. 15 * 16 * You may opt to use, copy, modify, merge, publish, distribute and/or sell 17 * copies of the Software, and permit persons to whom the Software is 18 * furnished to do so, under the terms of the COPYING file. 19 * 20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 21 * KIND, either express or implied. 22 * 23 * SPDX-License-Identifier: curl 24 * 25 ***************************************************************************/ 26 27 /* ================================================================ */ 28 /* lib/config-win32ce.h - Hand crafted config file for windows ce */ 29 /* ================================================================ */ 30 31 /* ---------------------------------------------------------------- */ 32 /* HEADER FILES */ 33 /* ---------------------------------------------------------------- */ 34 35 /* Define if you have the <arpa/inet.h> header file. */ 36 /* #define HAVE_ARPA_INET_H 1 */ 37 38 /* Define if you have the <fcntl.h> header file. */ 39 #define HAVE_FCNTL_H 1 40 41 /* Define if you have the <io.h> header file. */ 42 #define HAVE_IO_H 1 43 44 /* Define if you need the malloc.h header file even with stdlib.h */ 45 #define NEED_MALLOC_H 1 46 47 /* Define if you have the <netdb.h> header file. */ 48 /* #define HAVE_NETDB_H 1 */ 49 50 /* Define if you have the <netinet/in.h> header file. */ 51 /* #define HAVE_NETINET_IN_H 1 */ 52 53 /* Define if you have the <signal.h> header file. */ 54 #define HAVE_SIGNAL_H 1 55 56 /* Define if you have the <ssl.h> header file. */ 57 /* #define HAVE_SSL_H 1 */ 58 59 /* Define if you have the <stdlib.h> header file. */ 60 #define HAVE_STDLIB_H 1 61 62 /* Define if you have the <sys/param.h> header file. */ 63 /* #define HAVE_SYS_PARAM_H 1 */ 64 65 /* Define if you have the <sys/select.h> header file. */ 66 /* #define HAVE_SYS_SELECT_H 1 */ 67 68 /* Define if you have the <sys/socket.h> header file. */ 69 /* #define HAVE_SYS_SOCKET_H 1 */ 70 71 /* Define if you have the <sys/sockio.h> header file. */ 72 /* #define HAVE_SYS_SOCKIO_H 1 */ 73 74 /* Define if you have the <sys/stat.h> header file. */ 75 #define HAVE_SYS_STAT_H 1 76 77 /* Define if you have the <sys/time.h> header file */ 78 /* #define HAVE_SYS_TIME_H 1 */ 79 80 /* Define if you have the <sys/types.h> header file. */ 81 /* #define HAVE_SYS_TYPES_H 1 */ 82 83 /* Define if you have the <sys/utime.h> header file */ 84 #define HAVE_SYS_UTIME_H 1 85 86 /* Define if you have the <termio.h> header file. */ 87 /* #define HAVE_TERMIO_H 1 */ 88 89 /* Define if you have the <termios.h> header file. */ 90 /* #define HAVE_TERMIOS_H 1 */ 91 92 /* Define if you have the <time.h> header file. */ 93 #define HAVE_TIME_H 1 94 95 /* Define if you have the <unistd.h> header file. */ 96 #if defined(__MINGW32__) || defined(__LCC__) 97 #define HAVE_UNISTD_H 1 98 #endif 99 100 /* Define if you have the <windows.h> header file. */ 101 #define HAVE_WINDOWS_H 1 102 103 /* Define if you have the <winsock2.h> header file. */ 104 #define HAVE_WINSOCK2_H 1 105 106 /* Define if you have the <ws2tcpip.h> header file. */ 107 #define HAVE_WS2TCPIP_H 1 108 109 /* ---------------------------------------------------------------- */ 110 /* OTHER HEADER INFO */ 111 /* ---------------------------------------------------------------- */ 112 113 /* Define if you have the ANSI C header files. */ 114 #define STDC_HEADERS 1 115 116 /* Define if you can safely include both <sys/time.h> and <time.h>. */ 117 /* #define TIME_WITH_SYS_TIME 1 */ 118 119 /* ---------------------------------------------------------------- */ 120 /* FUNCTIONS */ 121 /* ---------------------------------------------------------------- */ 122 123 /* Define if you have the closesocket function. */ 124 #define HAVE_CLOSESOCKET 1 125 126 /* Define if you have the gethostname function. */ 127 #define HAVE_GETHOSTNAME 1 128 129 /* Define if you have the gettimeofday function. */ 130 /* #define HAVE_GETTIMEOFDAY 1 */ 131 132 /* Define if you have the ioctlsocket function. */ 133 #define HAVE_IOCTLSOCKET 1 134 135 /* Define if you have a working ioctlsocket FIONBIO function. */ 136 #define HAVE_IOCTLSOCKET_FIONBIO 1 137 138 /* Define if you have the select function. */ 139 #define HAVE_SELECT 1 140 141 /* Define if you have the socket function. */ 142 #define HAVE_SOCKET 1 143 144 /* Define if you have the strcasecmp function. */ 145 /* #define HAVE_STRCASECMP 1 */ 146 147 /* Define if you have the strdup function. */ 148 /* #define HAVE_STRDUP 1 */ 149 150 /* Define if you have the stricmp function. */ 151 /* #define HAVE_STRICMP 1 */ 152 153 /* Define if you have the strtoll function. */ 154 #if defined(__MINGW32__) 155 #define HAVE_STRTOLL 1 156 #endif 157 158 /* Define if you have the utime function */ 159 #define HAVE_UTIME 1 160 161 /* Define if you have the recv function. */ 162 #define HAVE_RECV 1 163 164 /* Define to the type of arg 1 for recv. */ 165 #define RECV_TYPE_ARG1 SOCKET 166 167 /* Define to the type of arg 2 for recv. */ 168 #define RECV_TYPE_ARG2 char * 169 170 /* Define to the type of arg 3 for recv. */ 171 #define RECV_TYPE_ARG3 int 172 173 /* Define to the type of arg 4 for recv. */ 174 #define RECV_TYPE_ARG4 int 175 176 /* Define to the function return type for recv. */ 177 #define RECV_TYPE_RETV int 178 179 /* Define if you have the send function. */ 180 #define HAVE_SEND 1 181 182 /* Define to the type of arg 1 for send. */ 183 #define SEND_TYPE_ARG1 SOCKET 184 185 /* Define to the type qualifier of arg 2 for send. */ 186 #define SEND_QUAL_ARG2 const 187 188 /* Define to the type of arg 2 for send. */ 189 #define SEND_TYPE_ARG2 char * 190 191 /* Define to the type of arg 3 for send. */ 192 #define SEND_TYPE_ARG3 int 193 194 /* Define to the type of arg 4 for send. */ 195 #define SEND_TYPE_ARG4 int 196 197 /* Define to the function return type for send. */ 198 #define SEND_TYPE_RETV int 199 200 /* ---------------------------------------------------------------- */ 201 /* TYPEDEF REPLACEMENTS */ 202 /* ---------------------------------------------------------------- */ 203 204 /* Define this if in_addr_t is not an available 'typedefed' type */ 205 #define in_addr_t unsigned long 206 207 /* Define ssize_t if it is not an available 'typedefed' type */ 208 #if defined(__POCC__) 209 #elif defined(_WIN64) 210 #define ssize_t __int64 211 #else 212 #define ssize_t int 213 #endif 214 215 /* ---------------------------------------------------------------- */ 216 /* TYPE SIZES */ 217 /* ---------------------------------------------------------------- */ 218 219 /* The size of `int', as computed by sizeof. */ 220 #define SIZEOF_INT 4 221 222 /* The size of `long long', as computed by sizeof. */ 223 /* #define SIZEOF_LONG_LONG 8 */ 224 225 /* Define to the size of `long', as computed by sizeof. */ 226 #define SIZEOF_LONG 4 227 228 /* The size of `size_t', as computed by sizeof. */ 229 #if defined(_WIN64) 230 # define SIZEOF_SIZE_T 8 231 #else 232 # define SIZEOF_SIZE_T 4 233 #endif 234 235 /* ---------------------------------------------------------------- */ 236 /* STRUCT RELATED */ 237 /* ---------------------------------------------------------------- */ 238 239 /* Define this if you have struct sockaddr_storage */ 240 /* #define HAVE_STRUCT_SOCKADDR_STORAGE 1 */ 241 242 /* Define this if you have struct timeval */ 243 #define HAVE_STRUCT_TIMEVAL 1 244 245 /* Define this if struct sockaddr_in6 has the sin6_scope_id member */ 246 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 247 248 /* ---------------------------------------------------------------- */ 249 /* COMPILER SPECIFIC */ 250 /* ---------------------------------------------------------------- */ 251 252 /* Undef keyword 'const' if it does not work. */ 253 /* #undef const */ 254 255 /* Define to avoid VS2005 complaining about portable C functions */ 256 #if defined(_MSC_VER) && (_MSC_VER >= 1400) 257 #define _CRT_SECURE_NO_DEPRECATE 1 258 #define _CRT_NONSTDC_NO_DEPRECATE 1 259 #endif 260 261 /* VS2005 and later default size for time_t is 64-bit, unless */ 262 /* _USE_32BIT_TIME_T has been defined to get a 32-bit time_t. */ 263 #if defined(_MSC_VER) && (_MSC_VER >= 1400) 264 # ifndef _USE_32BIT_TIME_T 265 # define SIZEOF_TIME_T 8 266 # else 267 # define SIZEOF_TIME_T 4 268 # endif 269 #endif 270 271 /* ---------------------------------------------------------------- */ 272 /* LARGE FILE SUPPORT */ 273 /* ---------------------------------------------------------------- */ 274 275 #if defined(_MSC_VER) && !defined(_WIN32_WCE) 276 # if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64) 277 # define USE_WIN32_LARGE_FILES 278 # else 279 # define USE_WIN32_SMALL_FILES 280 # endif 281 #endif 282 283 #if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES) 284 # define USE_WIN32_SMALL_FILES 285 #endif 286 287 /* ---------------------------------------------------------------- */ 288 /* LDAP SUPPORT */ 289 /* ---------------------------------------------------------------- */ 290 291 #define USE_WIN32_LDAP 1 292 #undef HAVE_LDAP_URL_PARSE 293 294 /* ---------------------------------------------------------------- */ 295 /* ADDITIONAL DEFINITIONS */ 296 /* ---------------------------------------------------------------- */ 297 298 /* Define cpu-machine-OS */ 299 #ifndef OS 300 #define OS "i386-pc-win32ce" 301 #endif 302 303 /* Name of package */ 304 #define PACKAGE "curl" 305 306 /* ---------------------------------------------------------------- */ 307 /* WinCE */ 308 /* ---------------------------------------------------------------- */ 309 310 #ifndef UNICODE 311 # define UNICODE 312 #endif 313 314 #ifndef _UNICODE 315 # define _UNICODE 316 #endif 317 318 #define CURL_DISABLE_FILE 1 319 #define CURL_DISABLE_TELNET 1 320 #define CURL_DISABLE_LDAP 1 321 322 #define ENOSPC 1 323 #define ENOMEM 2 324 #define EAGAIN 3 325 326 extern int stat(const char *path, struct stat *buffer); 327 328 #endif /* HEADER_CURL_CONFIG_WIN32CE_H */ 329