113498266Sopenharmony_ci#ifndef HEADER_CURL_CONFIG_WIN32CE_H
213498266Sopenharmony_ci#define HEADER_CURL_CONFIG_WIN32CE_H
313498266Sopenharmony_ci/***************************************************************************
413498266Sopenharmony_ci *                                  _   _ ____  _
513498266Sopenharmony_ci *  Project                     ___| | | |  _ \| |
613498266Sopenharmony_ci *                             / __| | | | |_) | |
713498266Sopenharmony_ci *                            | (__| |_| |  _ <| |___
813498266Sopenharmony_ci *                             \___|\___/|_| \_\_____|
913498266Sopenharmony_ci *
1013498266Sopenharmony_ci * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
1113498266Sopenharmony_ci *
1213498266Sopenharmony_ci * This software is licensed as described in the file COPYING, which
1313498266Sopenharmony_ci * you should have received as part of this distribution. The terms
1413498266Sopenharmony_ci * are also available at https://curl.se/docs/copyright.html.
1513498266Sopenharmony_ci *
1613498266Sopenharmony_ci * You may opt to use, copy, modify, merge, publish, distribute and/or sell
1713498266Sopenharmony_ci * copies of the Software, and permit persons to whom the Software is
1813498266Sopenharmony_ci * furnished to do so, under the terms of the COPYING file.
1913498266Sopenharmony_ci *
2013498266Sopenharmony_ci * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
2113498266Sopenharmony_ci * KIND, either express or implied.
2213498266Sopenharmony_ci *
2313498266Sopenharmony_ci * SPDX-License-Identifier: curl
2413498266Sopenharmony_ci *
2513498266Sopenharmony_ci ***************************************************************************/
2613498266Sopenharmony_ci
2713498266Sopenharmony_ci/* ================================================================ */
2813498266Sopenharmony_ci/*  lib/config-win32ce.h - Hand crafted config file for windows ce  */
2913498266Sopenharmony_ci/* ================================================================ */
3013498266Sopenharmony_ci
3113498266Sopenharmony_ci/* ---------------------------------------------------------------- */
3213498266Sopenharmony_ci/*                          HEADER FILES                            */
3313498266Sopenharmony_ci/* ---------------------------------------------------------------- */
3413498266Sopenharmony_ci
3513498266Sopenharmony_ci/* Define if you have the <arpa/inet.h> header file.  */
3613498266Sopenharmony_ci/* #define HAVE_ARPA_INET_H 1 */
3713498266Sopenharmony_ci
3813498266Sopenharmony_ci/* Define if you have the <fcntl.h> header file.  */
3913498266Sopenharmony_ci#define HAVE_FCNTL_H 1
4013498266Sopenharmony_ci
4113498266Sopenharmony_ci/* Define if you have the <io.h> header file.  */
4213498266Sopenharmony_ci#define HAVE_IO_H 1
4313498266Sopenharmony_ci
4413498266Sopenharmony_ci/* Define if you need the malloc.h header file even with stdlib.h  */
4513498266Sopenharmony_ci#define NEED_MALLOC_H 1
4613498266Sopenharmony_ci
4713498266Sopenharmony_ci/* Define if you have the <netdb.h> header file.  */
4813498266Sopenharmony_ci/* #define HAVE_NETDB_H 1 */
4913498266Sopenharmony_ci
5013498266Sopenharmony_ci/* Define if you have the <netinet/in.h> header file.  */
5113498266Sopenharmony_ci/* #define HAVE_NETINET_IN_H 1 */
5213498266Sopenharmony_ci
5313498266Sopenharmony_ci/* Define if you have the <sys/param.h> header file.  */
5413498266Sopenharmony_ci/* #define HAVE_SYS_PARAM_H 1 */
5513498266Sopenharmony_ci
5613498266Sopenharmony_ci/* Define if you have the <sys/select.h> header file.  */
5713498266Sopenharmony_ci/* #define HAVE_SYS_SELECT_H 1 */
5813498266Sopenharmony_ci
5913498266Sopenharmony_ci/* Define if you have the <sys/socket.h> header file.  */
6013498266Sopenharmony_ci/* #define HAVE_SYS_SOCKET_H 1 */
6113498266Sopenharmony_ci
6213498266Sopenharmony_ci/* Define if you have the <sys/sockio.h> header file.  */
6313498266Sopenharmony_ci/* #define HAVE_SYS_SOCKIO_H 1 */
6413498266Sopenharmony_ci
6513498266Sopenharmony_ci/* Define if you have the <sys/stat.h> header file.  */
6613498266Sopenharmony_ci#define HAVE_SYS_STAT_H 1
6713498266Sopenharmony_ci
6813498266Sopenharmony_ci/* Define if you have the <sys/time.h> header file */
6913498266Sopenharmony_ci/* #define HAVE_SYS_TIME_H 1 */
7013498266Sopenharmony_ci
7113498266Sopenharmony_ci/* Define if you have the <sys/types.h> header file.  */
7213498266Sopenharmony_ci/* #define HAVE_SYS_TYPES_H 1 */
7313498266Sopenharmony_ci
7413498266Sopenharmony_ci/* Define if you have the <sys/utime.h> header file */
7513498266Sopenharmony_ci#define HAVE_SYS_UTIME_H 1
7613498266Sopenharmony_ci
7713498266Sopenharmony_ci/* Define if you have the <termio.h> header file.  */
7813498266Sopenharmony_ci/* #define HAVE_TERMIO_H 1 */
7913498266Sopenharmony_ci
8013498266Sopenharmony_ci/* Define if you have the <termios.h> header file.  */
8113498266Sopenharmony_ci/* #define HAVE_TERMIOS_H 1 */
8213498266Sopenharmony_ci
8313498266Sopenharmony_ci/* Define if you have the <unistd.h> header file.  */
8413498266Sopenharmony_ci#if defined(__MINGW32__)
8513498266Sopenharmony_ci#define HAVE_UNISTD_H 1
8613498266Sopenharmony_ci#endif
8713498266Sopenharmony_ci
8813498266Sopenharmony_ci/* ---------------------------------------------------------------- */
8913498266Sopenharmony_ci/*                        OTHER HEADER INFO                         */
9013498266Sopenharmony_ci/* ---------------------------------------------------------------- */
9113498266Sopenharmony_ci
9213498266Sopenharmony_ci/* Define if you have the ANSI C header files.  */
9313498266Sopenharmony_ci#define STDC_HEADERS 1
9413498266Sopenharmony_ci
9513498266Sopenharmony_ci/* ---------------------------------------------------------------- */
9613498266Sopenharmony_ci/*                             FUNCTIONS                            */
9713498266Sopenharmony_ci/* ---------------------------------------------------------------- */
9813498266Sopenharmony_ci
9913498266Sopenharmony_ci/* Define if you have the closesocket function.  */
10013498266Sopenharmony_ci#define HAVE_CLOSESOCKET 1
10113498266Sopenharmony_ci
10213498266Sopenharmony_ci/* Define if you have the gethostname function.  */
10313498266Sopenharmony_ci#define HAVE_GETHOSTNAME 1
10413498266Sopenharmony_ci
10513498266Sopenharmony_ci/* Define if you have the gettimeofday function.  */
10613498266Sopenharmony_ci/*  #define HAVE_GETTIMEOFDAY 1 */
10713498266Sopenharmony_ci
10813498266Sopenharmony_ci/* Define if you have the ioctlsocket function. */
10913498266Sopenharmony_ci#define HAVE_IOCTLSOCKET 1
11013498266Sopenharmony_ci
11113498266Sopenharmony_ci/* Define if you have a working ioctlsocket FIONBIO function. */
11213498266Sopenharmony_ci#define HAVE_IOCTLSOCKET_FIONBIO 1
11313498266Sopenharmony_ci
11413498266Sopenharmony_ci/* Define if you have the select function.  */
11513498266Sopenharmony_ci#define HAVE_SELECT 1
11613498266Sopenharmony_ci
11713498266Sopenharmony_ci/* Define if you have the socket function.  */
11813498266Sopenharmony_ci#define HAVE_SOCKET 1
11913498266Sopenharmony_ci
12013498266Sopenharmony_ci/* Define if you have the strcasecmp function.  */
12113498266Sopenharmony_ci/* #define HAVE_STRCASECMP 1 */
12213498266Sopenharmony_ci
12313498266Sopenharmony_ci/* Define if you have the strdup function.  */
12413498266Sopenharmony_ci/* #define HAVE_STRDUP 1 */
12513498266Sopenharmony_ci
12613498266Sopenharmony_ci/* Define if you have the stricmp function. */
12713498266Sopenharmony_ci/* #define HAVE_STRICMP 1 */
12813498266Sopenharmony_ci
12913498266Sopenharmony_ci/* Define if you have the strtoll function.  */
13013498266Sopenharmony_ci#if defined(__MINGW32__)
13113498266Sopenharmony_ci#define HAVE_STRTOLL 1
13213498266Sopenharmony_ci#endif
13313498266Sopenharmony_ci
13413498266Sopenharmony_ci/* Define if you have the utime function */
13513498266Sopenharmony_ci#define HAVE_UTIME 1
13613498266Sopenharmony_ci
13713498266Sopenharmony_ci/* Define if you have the recv function. */
13813498266Sopenharmony_ci#define HAVE_RECV 1
13913498266Sopenharmony_ci
14013498266Sopenharmony_ci/* Define to the type of arg 1 for recv. */
14113498266Sopenharmony_ci#define RECV_TYPE_ARG1 SOCKET
14213498266Sopenharmony_ci
14313498266Sopenharmony_ci/* Define to the type of arg 2 for recv. */
14413498266Sopenharmony_ci#define RECV_TYPE_ARG2 char *
14513498266Sopenharmony_ci
14613498266Sopenharmony_ci/* Define to the type of arg 3 for recv. */
14713498266Sopenharmony_ci#define RECV_TYPE_ARG3 int
14813498266Sopenharmony_ci
14913498266Sopenharmony_ci/* Define to the type of arg 4 for recv. */
15013498266Sopenharmony_ci#define RECV_TYPE_ARG4 int
15113498266Sopenharmony_ci
15213498266Sopenharmony_ci/* Define to the function return type for recv. */
15313498266Sopenharmony_ci#define RECV_TYPE_RETV int
15413498266Sopenharmony_ci
15513498266Sopenharmony_ci/* Define if you have the send function. */
15613498266Sopenharmony_ci#define HAVE_SEND 1
15713498266Sopenharmony_ci
15813498266Sopenharmony_ci/* Define to the type of arg 1 for send. */
15913498266Sopenharmony_ci#define SEND_TYPE_ARG1 SOCKET
16013498266Sopenharmony_ci
16113498266Sopenharmony_ci/* Define to the type qualifier of arg 2 for send. */
16213498266Sopenharmony_ci#define SEND_QUAL_ARG2 const
16313498266Sopenharmony_ci
16413498266Sopenharmony_ci/* Define to the type of arg 2 for send. */
16513498266Sopenharmony_ci#define SEND_TYPE_ARG2 char *
16613498266Sopenharmony_ci
16713498266Sopenharmony_ci/* Define to the type of arg 3 for send. */
16813498266Sopenharmony_ci#define SEND_TYPE_ARG3 int
16913498266Sopenharmony_ci
17013498266Sopenharmony_ci/* Define to the type of arg 4 for send. */
17113498266Sopenharmony_ci#define SEND_TYPE_ARG4 int
17213498266Sopenharmony_ci
17313498266Sopenharmony_ci/* Define to the function return type for send. */
17413498266Sopenharmony_ci#define SEND_TYPE_RETV int
17513498266Sopenharmony_ci
17613498266Sopenharmony_ci/* ---------------------------------------------------------------- */
17713498266Sopenharmony_ci/*                       TYPEDEF REPLACEMENTS                       */
17813498266Sopenharmony_ci/* ---------------------------------------------------------------- */
17913498266Sopenharmony_ci
18013498266Sopenharmony_ci/* Define this if in_addr_t is not an available 'typedefed' type */
18113498266Sopenharmony_ci#define in_addr_t unsigned long
18213498266Sopenharmony_ci
18313498266Sopenharmony_ci/* Define ssize_t if it is not an available 'typedefed' type */
18413498266Sopenharmony_ci#if defined(_WIN64)
18513498266Sopenharmony_ci#define ssize_t __int64
18613498266Sopenharmony_ci#else
18713498266Sopenharmony_ci#define ssize_t int
18813498266Sopenharmony_ci#endif
18913498266Sopenharmony_ci
19013498266Sopenharmony_ci/* ---------------------------------------------------------------- */
19113498266Sopenharmony_ci/*                            TYPE SIZES                            */
19213498266Sopenharmony_ci/* ---------------------------------------------------------------- */
19313498266Sopenharmony_ci
19413498266Sopenharmony_ci/* The size of `int', as computed by sizeof. */
19513498266Sopenharmony_ci#define SIZEOF_INT 4
19613498266Sopenharmony_ci
19713498266Sopenharmony_ci/* The size of `long long', as computed by sizeof. */
19813498266Sopenharmony_ci/* #define SIZEOF_LONG_LONG 8 */
19913498266Sopenharmony_ci
20013498266Sopenharmony_ci/* Define to the size of `long', as computed by sizeof. */
20113498266Sopenharmony_ci#define SIZEOF_LONG 4
20213498266Sopenharmony_ci
20313498266Sopenharmony_ci/* The size of `size_t', as computed by sizeof. */
20413498266Sopenharmony_ci#if defined(_WIN64)
20513498266Sopenharmony_ci#  define SIZEOF_SIZE_T 8
20613498266Sopenharmony_ci#else
20713498266Sopenharmony_ci#  define SIZEOF_SIZE_T 4
20813498266Sopenharmony_ci#endif
20913498266Sopenharmony_ci
21013498266Sopenharmony_ci/* ---------------------------------------------------------------- */
21113498266Sopenharmony_ci/*                          STRUCT RELATED                          */
21213498266Sopenharmony_ci/* ---------------------------------------------------------------- */
21313498266Sopenharmony_ci
21413498266Sopenharmony_ci/* Define this if you have struct sockaddr_storage */
21513498266Sopenharmony_ci/* #define HAVE_STRUCT_SOCKADDR_STORAGE 1 */
21613498266Sopenharmony_ci
21713498266Sopenharmony_ci/* Define this if you have struct timeval */
21813498266Sopenharmony_ci#define HAVE_STRUCT_TIMEVAL 1
21913498266Sopenharmony_ci
22013498266Sopenharmony_ci/* Define this if struct sockaddr_in6 has the sin6_scope_id member */
22113498266Sopenharmony_ci#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
22213498266Sopenharmony_ci
22313498266Sopenharmony_ci/* ---------------------------------------------------------------- */
22413498266Sopenharmony_ci/*                        COMPILER SPECIFIC                         */
22513498266Sopenharmony_ci/* ---------------------------------------------------------------- */
22613498266Sopenharmony_ci
22713498266Sopenharmony_ci/* Undef keyword 'const' if it does not work.  */
22813498266Sopenharmony_ci/* #undef const */
22913498266Sopenharmony_ci
23013498266Sopenharmony_ci/* Define to avoid VS2005 complaining about portable C functions */
23113498266Sopenharmony_ci#if defined(_MSC_VER) && (_MSC_VER >= 1400)
23213498266Sopenharmony_ci#define _CRT_SECURE_NO_DEPRECATE 1
23313498266Sopenharmony_ci#define _CRT_NONSTDC_NO_DEPRECATE 1
23413498266Sopenharmony_ci#endif
23513498266Sopenharmony_ci
23613498266Sopenharmony_ci/* VS2005 and later default size for time_t is 64-bit, unless */
23713498266Sopenharmony_ci/* _USE_32BIT_TIME_T has been defined to get a 32-bit time_t. */
23813498266Sopenharmony_ci#if defined(_MSC_VER) && (_MSC_VER >= 1400)
23913498266Sopenharmony_ci#  ifndef _USE_32BIT_TIME_T
24013498266Sopenharmony_ci#    define SIZEOF_TIME_T 8
24113498266Sopenharmony_ci#  else
24213498266Sopenharmony_ci#    define SIZEOF_TIME_T 4
24313498266Sopenharmony_ci#  endif
24413498266Sopenharmony_ci#endif
24513498266Sopenharmony_ci
24613498266Sopenharmony_ci/* ---------------------------------------------------------------- */
24713498266Sopenharmony_ci/*                        LARGE FILE SUPPORT                        */
24813498266Sopenharmony_ci/* ---------------------------------------------------------------- */
24913498266Sopenharmony_ci
25013498266Sopenharmony_ci#if defined(_MSC_VER) && !defined(_WIN32_WCE)
25113498266Sopenharmony_ci#  if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
25213498266Sopenharmony_ci#    define USE_WIN32_LARGE_FILES
25313498266Sopenharmony_ci#  else
25413498266Sopenharmony_ci#    define USE_WIN32_SMALL_FILES
25513498266Sopenharmony_ci#  endif
25613498266Sopenharmony_ci#endif
25713498266Sopenharmony_ci
25813498266Sopenharmony_ci#if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES)
25913498266Sopenharmony_ci#  define USE_WIN32_SMALL_FILES
26013498266Sopenharmony_ci#endif
26113498266Sopenharmony_ci
26213498266Sopenharmony_ci/* ---------------------------------------------------------------- */
26313498266Sopenharmony_ci/*                           LDAP SUPPORT                           */
26413498266Sopenharmony_ci/* ---------------------------------------------------------------- */
26513498266Sopenharmony_ci
26613498266Sopenharmony_ci#define USE_WIN32_LDAP 1
26713498266Sopenharmony_ci#undef HAVE_LDAP_URL_PARSE
26813498266Sopenharmony_ci
26913498266Sopenharmony_ci/* ---------------------------------------------------------------- */
27013498266Sopenharmony_ci/*                       ADDITIONAL DEFINITIONS                     */
27113498266Sopenharmony_ci/* ---------------------------------------------------------------- */
27213498266Sopenharmony_ci
27313498266Sopenharmony_ci/* Define cpu-machine-OS */
27413498266Sopenharmony_ci#ifndef OS
27513498266Sopenharmony_ci#define OS "i386-pc-win32ce"
27613498266Sopenharmony_ci#endif
27713498266Sopenharmony_ci
27813498266Sopenharmony_ci/* Name of package */
27913498266Sopenharmony_ci#define PACKAGE "curl"
28013498266Sopenharmony_ci
28113498266Sopenharmony_ci/* ---------------------------------------------------------------- */
28213498266Sopenharmony_ci/*                       WinCE                                      */
28313498266Sopenharmony_ci/* ---------------------------------------------------------------- */
28413498266Sopenharmony_ci
28513498266Sopenharmony_ci#ifndef UNICODE
28613498266Sopenharmony_ci#  define UNICODE
28713498266Sopenharmony_ci#endif
28813498266Sopenharmony_ci
28913498266Sopenharmony_ci#ifndef _UNICODE
29013498266Sopenharmony_ci#  define _UNICODE
29113498266Sopenharmony_ci#endif
29213498266Sopenharmony_ci
29313498266Sopenharmony_ci#define CURL_DISABLE_FILE 1
29413498266Sopenharmony_ci#define CURL_DISABLE_TELNET 1
29513498266Sopenharmony_ci#define CURL_DISABLE_LDAP 1
29613498266Sopenharmony_ci
29713498266Sopenharmony_ci#define ENOSPC 1
29813498266Sopenharmony_ci#define ENOMEM 2
29913498266Sopenharmony_ci#define EAGAIN 3
30013498266Sopenharmony_ci
30113498266Sopenharmony_ciextern int stat(const char *path, struct stat *buffer);
30213498266Sopenharmony_ci
30313498266Sopenharmony_ci#endif /* HEADER_CURL_CONFIG_WIN32CE_H */
304