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 <sys/param.h> header file. */ 54 /* #define HAVE_SYS_PARAM_H 1 */ 55 56 /* Define if you have the <sys/select.h> header file. */ 57 /* #define HAVE_SYS_SELECT_H 1 */ 58 59 /* Define if you have the <sys/socket.h> header file. */ 60 /* #define HAVE_SYS_SOCKET_H 1 */ 61 62 /* Define if you have the <sys/sockio.h> header file. */ 63 /* #define HAVE_SYS_SOCKIO_H 1 */ 64 65 /* Define if you have the <sys/stat.h> header file. */ 66 #define HAVE_SYS_STAT_H 1 67 68 /* Define if you have the <sys/time.h> header file */ 69 /* #define HAVE_SYS_TIME_H 1 */ 70 71 /* Define if you have the <sys/types.h> header file. */ 72 /* #define HAVE_SYS_TYPES_H 1 */ 73 74 /* Define if you have the <sys/utime.h> header file */ 75 #define HAVE_SYS_UTIME_H 1 76 77 /* Define if you have the <termio.h> header file. */ 78 /* #define HAVE_TERMIO_H 1 */ 79 80 /* Define if you have the <termios.h> header file. */ 81 /* #define HAVE_TERMIOS_H 1 */ 82 83 /* Define if you have the <unistd.h> header file. */ 84 #if defined(__MINGW32__) || defined(__LCC__) 85 #define HAVE_UNISTD_H 1 86 #endif 87 88 /* Define if you have the <windows.h> header file. */ 89 #define HAVE_WINDOWS_H 1 90 91 /* Define if you have the <winsock2.h> header file. */ 92 #define HAVE_WINSOCK2_H 1 93 94 /* Define if you have the <ws2tcpip.h> header file. */ 95 #define HAVE_WS2TCPIP_H 1 96 97 /* ---------------------------------------------------------------- */ 98 /* OTHER HEADER INFO */ 99 /* ---------------------------------------------------------------- */ 100 101 /* Define if you have the ANSI C header files. */ 102 #define STDC_HEADERS 1 103 104 /* ---------------------------------------------------------------- */ 105 /* FUNCTIONS */ 106 /* ---------------------------------------------------------------- */ 107 108 /* Define if you have the closesocket function. */ 109 #define HAVE_CLOSESOCKET 1 110 111 /* Define if you have the gethostname function. */ 112 #define HAVE_GETHOSTNAME 1 113 114 /* Define if you have the gettimeofday function. */ 115 /* #define HAVE_GETTIMEOFDAY 1 */ 116 117 /* Define if you have the ioctlsocket function. */ 118 #define HAVE_IOCTLSOCKET 1 119 120 /* Define if you have a working ioctlsocket FIONBIO function. */ 121 #define HAVE_IOCTLSOCKET_FIONBIO 1 122 123 /* Define if you have the select function. */ 124 #define HAVE_SELECT 1 125 126 /* Define if you have the socket function. */ 127 #define HAVE_SOCKET 1 128 129 /* Define if you have the strcasecmp function. */ 130 /* #define HAVE_STRCASECMP 1 */ 131 132 /* Define if you have the strdup function. */ 133 /* #define HAVE_STRDUP 1 */ 134 135 /* Define if you have the stricmp function. */ 136 /* #define HAVE_STRICMP 1 */ 137 138 /* Define if you have the strtoll function. */ 139 #if defined(__MINGW32__) 140 #define HAVE_STRTOLL 1 141 #endif 142 143 /* Define if you have the utime function */ 144 #define HAVE_UTIME 1 145 146 /* Define if you have the recv function. */ 147 #define HAVE_RECV 1 148 149 /* Define to the type of arg 1 for recv. */ 150 #define RECV_TYPE_ARG1 SOCKET 151 152 /* Define to the type of arg 2 for recv. */ 153 #define RECV_TYPE_ARG2 char * 154 155 /* Define to the type of arg 3 for recv. */ 156 #define RECV_TYPE_ARG3 int 157 158 /* Define to the type of arg 4 for recv. */ 159 #define RECV_TYPE_ARG4 int 160 161 /* Define to the function return type for recv. */ 162 #define RECV_TYPE_RETV int 163 164 /* Define if you have the send function. */ 165 #define HAVE_SEND 1 166 167 /* Define to the type of arg 1 for send. */ 168 #define SEND_TYPE_ARG1 SOCKET 169 170 /* Define to the type qualifier of arg 2 for send. */ 171 #define SEND_QUAL_ARG2 const 172 173 /* Define to the type of arg 2 for send. */ 174 #define SEND_TYPE_ARG2 char * 175 176 /* Define to the type of arg 3 for send. */ 177 #define SEND_TYPE_ARG3 int 178 179 /* Define to the type of arg 4 for send. */ 180 #define SEND_TYPE_ARG4 int 181 182 /* Define to the function return type for send. */ 183 #define SEND_TYPE_RETV int 184 185 /* ---------------------------------------------------------------- */ 186 /* TYPEDEF REPLACEMENTS */ 187 /* ---------------------------------------------------------------- */ 188 189 /* Define this if in_addr_t is not an available 'typedefed' type */ 190 #define in_addr_t unsigned long 191 192 /* Define ssize_t if it is not an available 'typedefed' type */ 193 #if defined(__POCC__) 194 #elif defined(_WIN64) 195 #define ssize_t __int64 196 #else 197 #define ssize_t int 198 #endif 199 200 /* ---------------------------------------------------------------- */ 201 /* TYPE SIZES */ 202 /* ---------------------------------------------------------------- */ 203 204 /* The size of `int', as computed by sizeof. */ 205 #define SIZEOF_INT 4 206 207 /* The size of `long long', as computed by sizeof. */ 208 /* #define SIZEOF_LONG_LONG 8 */ 209 210 /* Define to the size of `long', as computed by sizeof. */ 211 #define SIZEOF_LONG 4 212 213 /* The size of `size_t', as computed by sizeof. */ 214 #if defined(_WIN64) 215 # define SIZEOF_SIZE_T 8 216 #else 217 # define SIZEOF_SIZE_T 4 218 #endif 219 220 /* ---------------------------------------------------------------- */ 221 /* STRUCT RELATED */ 222 /* ---------------------------------------------------------------- */ 223 224 /* Define this if you have struct sockaddr_storage */ 225 /* #define HAVE_STRUCT_SOCKADDR_STORAGE 1 */ 226 227 /* Define this if you have struct timeval */ 228 #define HAVE_STRUCT_TIMEVAL 1 229 230 /* Define this if struct sockaddr_in6 has the sin6_scope_id member */ 231 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 232 233 /* ---------------------------------------------------------------- */ 234 /* COMPILER SPECIFIC */ 235 /* ---------------------------------------------------------------- */ 236 237 /* Undef keyword 'const' if it does not work. */ 238 /* #undef const */ 239 240 /* Define to avoid VS2005 complaining about portable C functions */ 241 #if defined(_MSC_VER) && (_MSC_VER >= 1400) 242 #define _CRT_SECURE_NO_DEPRECATE 1 243 #define _CRT_NONSTDC_NO_DEPRECATE 1 244 #endif 245 246 /* VS2005 and later default size for time_t is 64-bit, unless */ 247 /* _USE_32BIT_TIME_T has been defined to get a 32-bit time_t. */ 248 #if defined(_MSC_VER) && (_MSC_VER >= 1400) 249 # ifndef _USE_32BIT_TIME_T 250 # define SIZEOF_TIME_T 8 251 # else 252 # define SIZEOF_TIME_T 4 253 # endif 254 #endif 255 256 /* ---------------------------------------------------------------- */ 257 /* LARGE FILE SUPPORT */ 258 /* ---------------------------------------------------------------- */ 259 260 #if defined(_MSC_VER) && !defined(_WIN32_WCE) 261 # if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64) 262 # define USE_WIN32_LARGE_FILES 263 # else 264 # define USE_WIN32_SMALL_FILES 265 # endif 266 #endif 267 268 #if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES) 269 # define USE_WIN32_SMALL_FILES 270 #endif 271 272 /* ---------------------------------------------------------------- */ 273 /* LDAP SUPPORT */ 274 /* ---------------------------------------------------------------- */ 275 276 #define USE_WIN32_LDAP 1 277 #undef HAVE_LDAP_URL_PARSE 278 279 /* ---------------------------------------------------------------- */ 280 /* ADDITIONAL DEFINITIONS */ 281 /* ---------------------------------------------------------------- */ 282 283 /* Define cpu-machine-OS */ 284 #ifndef OS 285 #define OS "i386-pc-win32ce" 286 #endif 287 288 /* Name of package */ 289 #define PACKAGE "curl" 290 291 /* ---------------------------------------------------------------- */ 292 /* WinCE */ 293 /* ---------------------------------------------------------------- */ 294 295 #ifndef UNICODE 296 # define UNICODE 297 #endif 298 299 #ifndef _UNICODE 300 # define _UNICODE 301 #endif 302 303 #define CURL_DISABLE_FILE 1 304 #define CURL_DISABLE_TELNET 1 305 #define CURL_DISABLE_LDAP 1 306 307 #define ENOSPC 1 308 #define ENOMEM 2 309 #define EAGAIN 3 310 311 extern int stat(const char *path, struct stat *buffer); 312 313 #endif /* HEADER_CURL_CONFIG_WIN32CE_H */ 314