2
0

config-win32ce.h 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  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. /* lib/config-win32ce.h - Hand crafted config file for Windows CE */
  28. /* ================================================================ */
  29. /* ---------------------------------------------------------------- */
  30. /* HEADER FILES */
  31. /* ---------------------------------------------------------------- */
  32. /* Define if you have the <arpa/inet.h> header file. */
  33. /* #define HAVE_ARPA_INET_H 1 */
  34. /* Define if you have the <fcntl.h> header file. */
  35. #define HAVE_FCNTL_H 1
  36. /* Define if you have the <io.h> header file. */
  37. #define HAVE_IO_H 1
  38. /* Define if you need the malloc.h header file even with stdlib.h */
  39. #define NEED_MALLOC_H 1
  40. /* Define if you have the <netdb.h> header file. */
  41. /* #define HAVE_NETDB_H 1 */
  42. /* Define if you have the <netinet/in.h> header file. */
  43. /* #define HAVE_NETINET_IN_H 1 */
  44. /* Define if you have the <sys/param.h> header file. */
  45. /* #define HAVE_SYS_PARAM_H 1 */
  46. /* Define if you have the <sys/select.h> header file. */
  47. /* #define HAVE_SYS_SELECT_H 1 */
  48. /* Define if you have the <sys/socket.h> header file. */
  49. /* #define HAVE_SYS_SOCKET_H 1 */
  50. /* Define if you have the <sys/sockio.h> header file. */
  51. /* #define HAVE_SYS_SOCKIO_H 1 */
  52. /* Define if you have the <sys/stat.h> header file. */
  53. #define HAVE_SYS_STAT_H 1
  54. /* Define if you have the <sys/time.h> header file */
  55. /* #define HAVE_SYS_TIME_H 1 */
  56. /* Define if you have the <sys/types.h> header file. */
  57. /* #define HAVE_SYS_TYPES_H 1 */
  58. /* Define if you have the <sys/utime.h> header file */
  59. #define HAVE_SYS_UTIME_H 1
  60. /* Define if you have the <termio.h> header file. */
  61. /* #define HAVE_TERMIO_H 1 */
  62. /* Define if you have the <termios.h> header file. */
  63. /* #define HAVE_TERMIOS_H 1 */
  64. /* Define if you have the <unistd.h> header file. */
  65. #if defined(__MINGW32__)
  66. #define HAVE_UNISTD_H 1
  67. #endif
  68. /* ---------------------------------------------------------------- */
  69. /* OTHER HEADER INFO */
  70. /* ---------------------------------------------------------------- */
  71. /* Define if you have the ANSI C header files. */
  72. #define STDC_HEADERS 1
  73. /* ---------------------------------------------------------------- */
  74. /* FUNCTIONS */
  75. /* ---------------------------------------------------------------- */
  76. /* Define if you have the closesocket function. */
  77. #define HAVE_CLOSESOCKET 1
  78. /* Define if you have the gethostname function. */
  79. #define HAVE_GETHOSTNAME 1
  80. /* Define if you have the gettimeofday function. */
  81. /* #define HAVE_GETTIMEOFDAY 1 */
  82. /* Define if you have the ioctlsocket function. */
  83. #define HAVE_IOCTLSOCKET 1
  84. /* Define if you have a working ioctlsocket FIONBIO function. */
  85. #define HAVE_IOCTLSOCKET_FIONBIO 1
  86. /* Define if you have the select function. */
  87. #define HAVE_SELECT 1
  88. /* Define if you have the socket function. */
  89. #define HAVE_SOCKET 1
  90. /* Define if you have the strcasecmp function. */
  91. /* #define HAVE_STRCASECMP 1 */
  92. /* Define if you have the strdup function. */
  93. /* #define HAVE_STRDUP 1 */
  94. /* Define if you have the stricmp function. */
  95. /* #define HAVE_STRICMP 1 */
  96. /* Define if you have the strtoll function. */
  97. #if defined(__MINGW32__)
  98. #define HAVE_STRTOLL 1
  99. #endif
  100. /* Define if you have the utime function */
  101. #define HAVE_UTIME 1
  102. /* Define if you have the recv function. */
  103. #define HAVE_RECV 1
  104. /* Define to the type of arg 1 for recv. */
  105. #define RECV_TYPE_ARG1 SOCKET
  106. /* Define to the type of arg 2 for recv. */
  107. #define RECV_TYPE_ARG2 char *
  108. /* Define to the type of arg 3 for recv. */
  109. #define RECV_TYPE_ARG3 int
  110. /* Define to the type of arg 4 for recv. */
  111. #define RECV_TYPE_ARG4 int
  112. /* Define to the function return type for recv. */
  113. #define RECV_TYPE_RETV int
  114. /* Define if you have the send function. */
  115. #define HAVE_SEND 1
  116. /* Define to the type of arg 1 for send. */
  117. #define SEND_TYPE_ARG1 SOCKET
  118. /* Define to the type qualifier of arg 2 for send. */
  119. #define SEND_QUAL_ARG2 const
  120. /* Define to the type of arg 2 for send. */
  121. #define SEND_TYPE_ARG2 char *
  122. /* Define to the type of arg 3 for send. */
  123. #define SEND_TYPE_ARG3 int
  124. /* Define to the type of arg 4 for send. */
  125. #define SEND_TYPE_ARG4 int
  126. /* Define to the function return type for send. */
  127. #define SEND_TYPE_RETV int
  128. /* ---------------------------------------------------------------- */
  129. /* TYPEDEF REPLACEMENTS */
  130. /* ---------------------------------------------------------------- */
  131. /* Define this if in_addr_t is not an available 'typedefed' type */
  132. #define in_addr_t unsigned long
  133. /* Define ssize_t if it is not an available 'typedefed' type */
  134. #if defined(_WIN64)
  135. #define ssize_t __int64
  136. #else
  137. #define ssize_t int
  138. #endif
  139. /* ---------------------------------------------------------------- */
  140. /* TYPE SIZES */
  141. /* ---------------------------------------------------------------- */
  142. /* The size of `int', as computed by sizeof. */
  143. #define SIZEOF_INT 4
  144. /* The size of `long long', as computed by sizeof. */
  145. /* #define SIZEOF_LONG_LONG 8 */
  146. /* Define to the size of `long', as computed by sizeof. */
  147. #define SIZEOF_LONG 4
  148. /* The size of `size_t', as computed by sizeof. */
  149. #if defined(_WIN64)
  150. # define SIZEOF_SIZE_T 8
  151. #else
  152. # define SIZEOF_SIZE_T 4
  153. #endif
  154. /* ---------------------------------------------------------------- */
  155. /* STRUCT RELATED */
  156. /* ---------------------------------------------------------------- */
  157. /* Define this if you have struct sockaddr_storage */
  158. /* #define HAVE_STRUCT_SOCKADDR_STORAGE 1 */
  159. /* Define this if you have struct timeval */
  160. #define HAVE_STRUCT_TIMEVAL 1
  161. /* Define this if struct sockaddr_in6 has the sin6_scope_id member */
  162. #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
  163. /* ---------------------------------------------------------------- */
  164. /* COMPILER SPECIFIC */
  165. /* ---------------------------------------------------------------- */
  166. /* Undef keyword 'const' if it does not work. */
  167. /* #undef const */
  168. /* Define to avoid VS2005 complaining about portable C functions */
  169. #if defined(_MSC_VER) && (_MSC_VER >= 1400)
  170. #define _CRT_SECURE_NO_DEPRECATE 1
  171. #define _CRT_NONSTDC_NO_DEPRECATE 1
  172. #endif
  173. /* VS2005 and later default size for time_t is 64-bit, unless */
  174. /* _USE_32BIT_TIME_T has been defined to get a 32-bit time_t. */
  175. #if defined(_MSC_VER) && (_MSC_VER >= 1400)
  176. # ifndef _USE_32BIT_TIME_T
  177. # define SIZEOF_TIME_T 8
  178. # else
  179. # define SIZEOF_TIME_T 4
  180. # endif
  181. #endif
  182. /* ---------------------------------------------------------------- */
  183. /* LARGE FILE SUPPORT */
  184. /* ---------------------------------------------------------------- */
  185. #if defined(_MSC_VER) && !defined(_WIN32_WCE)
  186. # if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
  187. # define USE_WIN32_LARGE_FILES
  188. # else
  189. # define USE_WIN32_SMALL_FILES
  190. # endif
  191. #endif
  192. #if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES)
  193. # define USE_WIN32_SMALL_FILES
  194. #endif
  195. /* ---------------------------------------------------------------- */
  196. /* LDAP SUPPORT */
  197. /* ---------------------------------------------------------------- */
  198. #define USE_WIN32_LDAP 1
  199. #undef HAVE_LDAP_URL_PARSE
  200. /* ---------------------------------------------------------------- */
  201. /* ADDITIONAL DEFINITIONS */
  202. /* ---------------------------------------------------------------- */
  203. /* Define cpu-machine-OS */
  204. #ifndef CURL_OS
  205. #define CURL_OS "i386-pc-win32ce"
  206. #endif
  207. /* Name of package */
  208. #define PACKAGE "curl"
  209. /* ---------------------------------------------------------------- */
  210. /* Windows CE */
  211. /* ---------------------------------------------------------------- */
  212. #ifndef UNICODE
  213. # define UNICODE
  214. #endif
  215. #ifndef _UNICODE
  216. # define _UNICODE
  217. #endif
  218. #define CURL_DISABLE_FILE 1
  219. #define CURL_DISABLE_TELNET 1
  220. #define CURL_DISABLE_LDAP 1
  221. #define ENOSPC 1
  222. #define ENOMEM 2
  223. #define EAGAIN 3
  224. extern int stat(const char *path, struct stat *buffer);
  225. #endif /* HEADER_CURL_CONFIG_WIN32CE_H */