config-win32ce.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  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) 1998 - 2017, 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.haxx.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. ***************************************************************************/
  24. /* ================================================================ */
  25. /* lib/config-win32ce.h - Hand crafted config file for windows ce */
  26. /* ================================================================ */
  27. /* ---------------------------------------------------------------- */
  28. /* HEADER FILES */
  29. /* ---------------------------------------------------------------- */
  30. /* Define if you have the <arpa/inet.h> header file. */
  31. /* #define HAVE_ARPA_INET_H 1 */
  32. /* Define if you have the <assert.h> header file. */
  33. /* #define HAVE_ASSERT_H 1 */
  34. /* Define if you have the <crypto.h> header file. */
  35. /* #define HAVE_CRYPTO_H 1 */
  36. /* Define if you have the <errno.h> header file. */
  37. /* #define HAVE_ERRNO_H 1 */
  38. /* Define if you have the <err.h> header file. */
  39. /* #define HAVE_ERR_H 1 */
  40. /* Define if you have the <fcntl.h> header file. */
  41. #define HAVE_FCNTL_H 1
  42. /* Define if you have the <getopt.h> header file. */
  43. /* #define HAVE_GETOPT_H 1 */
  44. /* Define if you have the <io.h> header file. */
  45. #define HAVE_IO_H 1
  46. /* Define if you need the malloc.h header header file even with stdlib.h */
  47. #define NEED_MALLOC_H 1
  48. /* Define if you have the <netdb.h> header file. */
  49. /* #define HAVE_NETDB_H 1 */
  50. /* Define if you have the <netinet/in.h> header file. */
  51. /* #define HAVE_NETINET_IN_H 1 */
  52. /* Define if you have the <signal.h> header file. */
  53. #define HAVE_SIGNAL_H 1
  54. /* Define if you have the <sgtty.h> header file. */
  55. /* #define HAVE_SGTTY_H 1 */
  56. /* Define if you have the <ssl.h> header file. */
  57. /* #define HAVE_SSL_H 1 */
  58. /* Define if you have the <stdlib.h> header file. */
  59. #define HAVE_STDLIB_H 1
  60. /* Define if you have the <process.h> header file. */
  61. /* #define HAVE_PROCESS_H 1 */
  62. /* Define if you have the <sys/param.h> header file. */
  63. /* #define HAVE_SYS_PARAM_H 1 */
  64. /* Define if you have the <sys/select.h> header file. */
  65. /* #define HAVE_SYS_SELECT_H 1 */
  66. /* Define if you have the <sys/socket.h> header file. */
  67. /* #define HAVE_SYS_SOCKET_H 1 */
  68. /* Define if you have the <sys/sockio.h> header file. */
  69. /* #define HAVE_SYS_SOCKIO_H 1 */
  70. /* Define if you have the <sys/stat.h> header file. */
  71. #define HAVE_SYS_STAT_H 1
  72. /* Define if you have the <sys/time.h> header file */
  73. /* #define HAVE_SYS_TIME_H 1 */
  74. /* Define if you have the <sys/types.h> header file. */
  75. /* #define HAVE_SYS_TYPES_H 1 */
  76. /* Define if you have the <sys/utime.h> header file */
  77. #define HAVE_SYS_UTIME_H 1
  78. /* Define if you have the <termio.h> header file. */
  79. /* #define HAVE_TERMIO_H 1 */
  80. /* Define if you have the <termios.h> header file. */
  81. /* #define HAVE_TERMIOS_H 1 */
  82. /* Define if you have the <time.h> header file. */
  83. #define HAVE_TIME_H 1
  84. /* Define if you have the <unistd.h> header file. */
  85. #if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__)
  86. #define HAVE_UNISTD_H 1
  87. #endif
  88. /* Define if you have the <windows.h> header file. */
  89. #define HAVE_WINDOWS_H 1
  90. /* Define if you have the <winsock.h> header file. */
  91. #define HAVE_WINSOCK_H 1
  92. /* Define if you have the <winsock2.h> header file. */
  93. /* #define HAVE_WINSOCK2_H 1 */
  94. /* Define if you have the <ws2tcpip.h> header file. */
  95. /* #define HAVE_WS2TCPIP_H 1 */
  96. /* ---------------------------------------------------------------- */
  97. /* OTHER HEADER INFO */
  98. /* ---------------------------------------------------------------- */
  99. /* Define if sig_atomic_t is an available typedef. */
  100. #define HAVE_SIG_ATOMIC_T 1
  101. /* Define if you have the ANSI C header files. */
  102. #define STDC_HEADERS 1
  103. /* Define if you can safely include both <sys/time.h> and <time.h>. */
  104. /* #define TIME_WITH_SYS_TIME 1 */
  105. /* ---------------------------------------------------------------- */
  106. /* FUNCTIONS */
  107. /* ---------------------------------------------------------------- */
  108. /* Define if you have the closesocket function. */
  109. #define HAVE_CLOSESOCKET 1
  110. /* Define if you don't have vprintf but do have _doprnt. */
  111. /* #define HAVE_DOPRNT 1 */
  112. /* Define if you have the gethostbyaddr function. */
  113. #define HAVE_GETHOSTBYADDR 1
  114. /* Define if you have the gethostname function. */
  115. #define HAVE_GETHOSTNAME 1
  116. /* Define if you have the getpass function. */
  117. /* #define HAVE_GETPASS 1 */
  118. /* Define if you have the getservbyname function. */
  119. #define HAVE_GETSERVBYNAME 1
  120. /* Define if you have the gettimeofday function. */
  121. /* #define HAVE_GETTIMEOFDAY 1 */
  122. /* Define if you have the inet_addr function. */
  123. #define HAVE_INET_ADDR 1
  124. /* Define if you have the ioctlsocket function. */
  125. #define HAVE_IOCTLSOCKET 1
  126. /* Define if you have a working ioctlsocket FIONBIO function. */
  127. #define HAVE_IOCTLSOCKET_FIONBIO 1
  128. /* Define if you have the perror function. */
  129. #define HAVE_PERROR 1
  130. /* Define if you have the RAND_screen function when using SSL */
  131. #define HAVE_RAND_SCREEN 1
  132. /* Define if you have the `RAND_status' function when using SSL. */
  133. #define HAVE_RAND_STATUS 1
  134. /* Define if you have the select function. */
  135. #define HAVE_SELECT 1
  136. /* Define if you have the setvbuf function. */
  137. #define HAVE_SETVBUF 1
  138. /* Define if you have the socket function. */
  139. #define HAVE_SOCKET 1
  140. /* Define if you have the strcasecmp function. */
  141. /* #define HAVE_STRCASECMP 1 */
  142. /* Define if you have the strdup function. */
  143. /* #define HAVE_STRDUP 1 */
  144. /* Define if you have the strftime function. */
  145. /* #define HAVE_STRFTIME 1 */
  146. /* Define if you have the stricmp function. */
  147. /* #define HAVE_STRICMP 1 */
  148. /* Define if you have the strncasecmp function. */
  149. /* #define HAVE_STRNCASECMP 1 */
  150. /* Define if you have the strnicmp function. */
  151. /* #define HAVE_STRNICMP 1 */
  152. /* Define if you have the strstr function. */
  153. #define HAVE_STRSTR 1
  154. /* Define if you have the strtoll function. */
  155. #if defined(__MINGW32__) || defined(__WATCOMC__)
  156. #define HAVE_STRTOLL 1
  157. #endif
  158. /* Define if you have the tcgetattr function. */
  159. /* #define HAVE_TCGETATTR 1 */
  160. /* Define if you have the tcsetattr function. */
  161. /* #define HAVE_TCSETATTR 1 */
  162. /* Define if you have the utime function */
  163. #define HAVE_UTIME 1
  164. /* Define if you have the getnameinfo function. */
  165. #define HAVE_GETNAMEINFO 1
  166. /* Define to the type qualifier of arg 1 for getnameinfo. */
  167. #define GETNAMEINFO_QUAL_ARG1 const
  168. /* Define to the type of arg 1 for getnameinfo. */
  169. #define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
  170. /* Define to the type of arg 2 for getnameinfo. */
  171. #define GETNAMEINFO_TYPE_ARG2 socklen_t
  172. /* Define to the type of args 4 and 6 for getnameinfo. */
  173. #define GETNAMEINFO_TYPE_ARG46 DWORD
  174. /* Define to the type of arg 7 for getnameinfo. */
  175. #define GETNAMEINFO_TYPE_ARG7 int
  176. /* Define if you have the recv function. */
  177. #define HAVE_RECV 1
  178. /* Define to the type of arg 1 for recv. */
  179. #define RECV_TYPE_ARG1 SOCKET
  180. /* Define to the type of arg 2 for recv. */
  181. #define RECV_TYPE_ARG2 char *
  182. /* Define to the type of arg 3 for recv. */
  183. #define RECV_TYPE_ARG3 int
  184. /* Define to the type of arg 4 for recv. */
  185. #define RECV_TYPE_ARG4 int
  186. /* Define to the function return type for recv. */
  187. #define RECV_TYPE_RETV int
  188. /* Define if you have the recvfrom function. */
  189. #define HAVE_RECVFROM 1
  190. /* Define to the type of arg 1 for recvfrom. */
  191. #define RECVFROM_TYPE_ARG1 SOCKET
  192. /* Define to the type pointed by arg 2 for recvfrom. */
  193. #define RECVFROM_TYPE_ARG2 char
  194. /* Define to the type of arg 3 for recvfrom. */
  195. #define RECVFROM_TYPE_ARG3 int
  196. /* Define to the type of arg 4 for recvfrom. */
  197. #define RECVFROM_TYPE_ARG4 int
  198. /* Define to the type pointed by arg 5 for recvfrom. */
  199. #define RECVFROM_TYPE_ARG5 struct sockaddr
  200. /* Define to the type pointed by arg 6 for recvfrom. */
  201. #define RECVFROM_TYPE_ARG6 int
  202. /* Define to the function return type for recvfrom. */
  203. #define RECVFROM_TYPE_RETV int
  204. /* Define if you have the send function. */
  205. #define HAVE_SEND 1
  206. /* Define to the type of arg 1 for send. */
  207. #define SEND_TYPE_ARG1 SOCKET
  208. /* Define to the type qualifier of arg 2 for send. */
  209. #define SEND_QUAL_ARG2 const
  210. /* Define to the type of arg 2 for send. */
  211. #define SEND_TYPE_ARG2 char *
  212. /* Define to the type of arg 3 for send. */
  213. #define SEND_TYPE_ARG3 int
  214. /* Define to the type of arg 4 for send. */
  215. #define SEND_TYPE_ARG4 int
  216. /* Define to the function return type for send. */
  217. #define SEND_TYPE_RETV int
  218. /* ---------------------------------------------------------------- */
  219. /* TYPEDEF REPLACEMENTS */
  220. /* ---------------------------------------------------------------- */
  221. /* Define this if in_addr_t is not an available 'typedefed' type */
  222. #define in_addr_t unsigned long
  223. /* Define as the return type of signal handlers (int or void). */
  224. #define RETSIGTYPE void
  225. /* Define ssize_t if it is not an available 'typedefed' type */
  226. #if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || defined(__POCC__)
  227. #elif defined(_WIN64)
  228. #define ssize_t __int64
  229. #else
  230. #define ssize_t int
  231. #endif
  232. /* ---------------------------------------------------------------- */
  233. /* TYPE SIZES */
  234. /* ---------------------------------------------------------------- */
  235. /* The size of `int', as computed by sizeof. */
  236. #define SIZEOF_INT 4
  237. /* The size of `long double', as computed by sizeof. */
  238. #define SIZEOF_LONG_DOUBLE 16
  239. /* The size of `long long', as computed by sizeof. */
  240. /* #define SIZEOF_LONG_LONG 8 */
  241. /* The size of `short', as computed by sizeof. */
  242. #define SIZEOF_SHORT 2
  243. /* Define to the size of `long', as computed by sizeof. */
  244. #define SIZEOF_LONG 4
  245. /* The size of `size_t', as computed by sizeof. */
  246. #if defined(_WIN64)
  247. # define SIZEOF_SIZE_T 8
  248. #else
  249. # define SIZEOF_SIZE_T 4
  250. #endif
  251. /* ---------------------------------------------------------------- */
  252. /* STRUCT RELATED */
  253. /* ---------------------------------------------------------------- */
  254. /* Define this if you have struct sockaddr_storage */
  255. /* #define HAVE_STRUCT_SOCKADDR_STORAGE 1 */
  256. /* Define this if you have struct timeval */
  257. #define HAVE_STRUCT_TIMEVAL 1
  258. /* Define this if struct sockaddr_in6 has the sin6_scope_id member */
  259. #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
  260. /* ---------------------------------------------------------------- */
  261. /* COMPILER SPECIFIC */
  262. /* ---------------------------------------------------------------- */
  263. /* Undef keyword 'const' if it does not work. */
  264. /* #undef const */
  265. /* Define to avoid VS2005 complaining about portable C functions */
  266. #if defined(_MSC_VER) && (_MSC_VER >= 1400)
  267. #define _CRT_SECURE_NO_DEPRECATE 1
  268. #define _CRT_NONSTDC_NO_DEPRECATE 1
  269. #endif
  270. /* VS2005 and later default size for time_t is 64-bit, unless */
  271. /* _USE_32BIT_TIME_T has been defined to get a 32-bit time_t. */
  272. #if defined(_MSC_VER) && (_MSC_VER >= 1400)
  273. # ifndef _USE_32BIT_TIME_T
  274. # define SIZEOF_TIME_T 8
  275. # else
  276. # define SIZEOF_TIME_T 4
  277. # endif
  278. #endif
  279. /* ---------------------------------------------------------------- */
  280. /* LARGE FILE SUPPORT */
  281. /* ---------------------------------------------------------------- */
  282. #if defined(_MSC_VER) && !defined(_WIN32_WCE)
  283. # if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
  284. # define USE_WIN32_LARGE_FILES
  285. # else
  286. # define USE_WIN32_SMALL_FILES
  287. # endif
  288. #endif
  289. #if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES)
  290. # define USE_WIN32_SMALL_FILES
  291. #endif
  292. /* ---------------------------------------------------------------- */
  293. /* LDAP SUPPORT */
  294. /* ---------------------------------------------------------------- */
  295. #define USE_WIN32_LDAP 1
  296. #undef HAVE_LDAP_URL_PARSE
  297. /* ---------------------------------------------------------------- */
  298. /* ADDITIONAL DEFINITIONS */
  299. /* ---------------------------------------------------------------- */
  300. /* Define cpu-machine-OS */
  301. #undef OS
  302. #define OS "i386-pc-win32ce"
  303. /* Name of package */
  304. #define PACKAGE "curl"
  305. /* ---------------------------------------------------------------- */
  306. /* WinCE */
  307. /* ---------------------------------------------------------------- */
  308. #ifndef UNICODE
  309. # define UNICODE
  310. #endif
  311. #ifndef _UNICODE
  312. # define _UNICODE
  313. #endif
  314. #define CURL_DISABLE_FILE 1
  315. #define CURL_DISABLE_TELNET 1
  316. #define CURL_DISABLE_LDAP 1
  317. #define ENOSPC 1
  318. #define ENOMEM 2
  319. #define EAGAIN 3
  320. extern int stat(const char *path, struct stat *buffer);
  321. #endif /* HEADER_CURL_CONFIG_WIN32CE_H */