config-win32ce.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. #ifndef __LIB_CONFIG_WIN32CE_H
  2. #define __LIB_CONFIG_WIN32CE_H
  3. /* ================================================================ */
  4. /* lib/config-win32ce.h - Hand crafted config file for windows ce */
  5. /* ================================================================ */
  6. /* ---------------------------------------------------------------- */
  7. /* HEADER FILES */
  8. /* ---------------------------------------------------------------- */
  9. /* Define if you have the <alloca.h> header file. */
  10. /* #define HAVE_ALLOCA_H 1 */
  11. /* Define if you have the <arpa/inet.h> header file. */
  12. /* #define HAVE_ARPA_INET_H 1 */
  13. /* Define if you have the <assert.h> header file. */
  14. /* #define HAVE_ASSERT_H 1 */
  15. /* Define if you have the <crypto.h> header file. */
  16. /* #define HAVE_CRYPTO_H 1 */
  17. /* Define if you have the <dlfcn.h> header file. */
  18. /* #define HAVE_DLFCN_H 1 */
  19. /* Define if you have the <err.h> header file. */
  20. /* #define HAVE_ERR_H 1 */
  21. /* Define if you have the <fcntl.h> header file. */
  22. #define HAVE_FCNTL_H 1
  23. /* Define if you have the <getopt.h> header file. */
  24. /* #define HAVE_GETOPT_H 1 */
  25. /* Define if you have the <io.h> header file. */
  26. #define HAVE_IO_H 1
  27. /* Define if you have the <malloc.h> header file. */
  28. #define HAVE_MALLOC_H 1
  29. /* Define if you need the malloc.h header header file even with stdlib.h */
  30. #define NEED_MALLOC_H 1
  31. /* Define if you have the <netdb.h> header file. */
  32. /* #define HAVE_NETDB_H 1 */
  33. /* Define if you have the <netinet/in.h> header file. */
  34. /* #define HAVE_NETINET_IN_H 1 */
  35. /* Define if you have the <signal.h> header file. */
  36. #define HAVE_SIGNAL_H 1
  37. /* Define if you have the <sgtty.h> header file. */
  38. /* #define HAVE_SGTTY_H 1 */
  39. /* Define if you have the <ssl.h> header file. */
  40. /* #define HAVE_SSL_H 1 */
  41. /* Define if you have the <stdlib.h> header file. */
  42. #define HAVE_STDLIB_H 1
  43. /* Define if you have the <process.h> header file. */
  44. #define HAVE_PROCESS_H 1
  45. /* Define if you have the <sys/param.h> header file. */
  46. /* #define HAVE_SYS_PARAM_H 1 */
  47. /* Define if you have the <sys/select.h> header file. */
  48. /* #define HAVE_SYS_SELECT_H 1 */
  49. /* Define if you have the <sys/socket.h> header file. */
  50. /* #define HAVE_SYS_SOCKET_H 1 */
  51. /* Define if you have the <sys/sockio.h> header file. */
  52. /* #define HAVE_SYS_SOCKIO_H 1 */
  53. /* Define if you have the <sys/stat.h> header file. */
  54. #define HAVE_SYS_STAT_H 1
  55. /* Define if you have the <sys/time.h> header file */
  56. /* #define HAVE_SYS_TIME_H 1 */
  57. /* Define if you have the <sys/types.h> header file. */
  58. /* #define HAVE_SYS_TYPES_H 1 */
  59. /* Define if you have the <sys/utime.h> header file */
  60. #define HAVE_SYS_UTIME_H 1
  61. /* Define if you have the <termio.h> header file. */
  62. /* #define HAVE_TERMIO_H 1 */
  63. /* Define if you have the <termios.h> header file. */
  64. /* #define HAVE_TERMIOS_H 1 */
  65. /* Define if you have the <time.h> header file. */
  66. #define HAVE_TIME_H 1
  67. /* Define if you have the <unistd.h> header file. */
  68. #if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__)
  69. #define HAVE_UNISTD_H 1
  70. #endif
  71. /* Define if you have the <windows.h> header file. */
  72. #define HAVE_WINDOWS_H 1
  73. /* Define if you have the <winsock.h> header file. */
  74. #define HAVE_WINSOCK_H 1
  75. /* Define if you have the <winsock2.h> header file. */
  76. /* #define HAVE_WINSOCK2_H 1 */
  77. /* Define if you have the <ws2tcpip.h> header file. */
  78. /* #define HAVE_WS2TCPIP_H 1 */
  79. /* ---------------------------------------------------------------- */
  80. /* OTHER HEADER INFO */
  81. /* ---------------------------------------------------------------- */
  82. /* Define if sig_atomic_t is an available typedef. */
  83. #define HAVE_SIG_ATOMIC_T 1
  84. /* Define if you have the ANSI C header files. */
  85. #define STDC_HEADERS 1
  86. /* Define if you can safely include both <sys/time.h> and <time.h>. */
  87. /* #define TIME_WITH_SYS_TIME 1 */
  88. /* ---------------------------------------------------------------- */
  89. /* FUNCTIONS */
  90. /* ---------------------------------------------------------------- */
  91. /* Define if you have the closesocket function. */
  92. #define HAVE_CLOSESOCKET 1
  93. /* Define if you don't have vprintf but do have _doprnt. */
  94. /* #define HAVE_DOPRNT 1 */
  95. /* Define if you have the gethostbyaddr function. */
  96. #define HAVE_GETHOSTBYADDR 1
  97. /* Define if you have the gethostname function. */
  98. #define HAVE_GETHOSTNAME 1
  99. /* Define if you have the getpass function. */
  100. /* #define HAVE_GETPASS 1 */
  101. /* Define if you have the getservbyname function. */
  102. #define HAVE_GETSERVBYNAME 1
  103. /* Define if you have the gettimeofday function. */
  104. /* #define HAVE_GETTIMEOFDAY 1 */
  105. /* Define if you have the inet_addr function. */
  106. #define HAVE_INET_ADDR 1
  107. /* Define if you have the inet_ntoa function. */
  108. #define HAVE_INET_NTOA 1
  109. /* Define if you have the ioctlsocket function. */
  110. #define HAVE_IOCTLSOCKET 1
  111. /* Define if you have the perror function. */
  112. #define HAVE_PERROR 1
  113. /* Define if you have the RAND_screen function when using SSL */
  114. #define HAVE_RAND_SCREEN 1
  115. /* Define if you have the `RAND_status' function when using SSL. */
  116. #define HAVE_RAND_STATUS 1
  117. /* Define if you have the select function. */
  118. #define HAVE_SELECT 1
  119. /* Define if you have the setvbuf function. */
  120. #define HAVE_SETVBUF 1
  121. /* Define if you have the socket function. */
  122. #define HAVE_SOCKET 1
  123. /* Define if you have the strcasecmp function. */
  124. /* #define HAVE_STRCASECMP 1 */
  125. /* Define if you have the stricmp function. */
  126. /* #define HAVE_STRICMP 1 */
  127. /* Define if you have the strdup function. */
  128. /* #define HAVE_STRDUP 1 */
  129. /* Define if you have the strftime function. */
  130. /* #define HAVE_STRFTIME 1 */
  131. /* Define if you have the strstr function. */
  132. #define HAVE_STRSTR 1
  133. /* Define if you have the strtoll function. */
  134. #if defined(__MINGW32__) || defined(__WATCOMC__)
  135. #define HAVE_STRTOLL 1
  136. #endif
  137. /* Define if you have the tcgetattr function. */
  138. /* #define HAVE_TCGETATTR 1 */
  139. /* Define if you have the tcsetattr function. */
  140. /* #define HAVE_TCSETATTR 1 */
  141. /* Define if you have the uname function. */
  142. /* #define HAVE_UNAME 1 */
  143. /* Define if you have the utime function */
  144. #define HAVE_UTIME 1
  145. /* Define if you have the vprintf function. */
  146. #define HAVE_VPRINTF 1
  147. /* Define if you have the getnameinfo function. */
  148. #define HAVE_GETNAMEINFO 1
  149. /* Define to the type qualifier of arg 1 for getnameinfo. */
  150. #define GETNAMEINFO_QUAL_ARG1 const
  151. /* Define to the type of arg 1 for getnameinfo. */
  152. #define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
  153. /* Define to the type of arg 2 for getnameinfo. */
  154. #define GETNAMEINFO_TYPE_ARG2 socklen_t
  155. /* Define to the type of args 4 and 6 for getnameinfo. */
  156. #define GETNAMEINFO_TYPE_ARG46 DWORD
  157. /* Define to the type of arg 7 for getnameinfo. */
  158. #define GETNAMEINFO_TYPE_ARG7 int
  159. /* Define if you have the recv function. */
  160. #define HAVE_RECV 1
  161. /* Define to the type of arg 1 for recv. */
  162. #define RECV_TYPE_ARG1 SOCKET
  163. /* Define to the type of arg 2 for recv. */
  164. #define RECV_TYPE_ARG2 char *
  165. /* Define to the type of arg 3 for recv. */
  166. #define RECV_TYPE_ARG3 int
  167. /* Define to the type of arg 4 for recv. */
  168. #define RECV_TYPE_ARG4 int
  169. /* Define to the function return type for recv. */
  170. #define RECV_TYPE_RETV int
  171. /* Define if you have the send function. */
  172. #define HAVE_SEND 1
  173. /* Define to the type of arg 1 for send. */
  174. #define SEND_TYPE_ARG1 SOCKET
  175. /* Define to the type qualifier of arg 2 for send. */
  176. #define SEND_QUAL_ARG2 const
  177. /* Define to the type of arg 2 for send. */
  178. #define SEND_TYPE_ARG2 char *
  179. /* Define to the type of arg 3 for send. */
  180. #define SEND_TYPE_ARG3 int
  181. /* Define to the type of arg 4 for send. */
  182. #define SEND_TYPE_ARG4 int
  183. /* Define to the function return type for send. */
  184. #define SEND_TYPE_RETV int
  185. /* ---------------------------------------------------------------- */
  186. /* TYPEDEF REPLACEMENTS */
  187. /* ---------------------------------------------------------------- */
  188. /* Define this if in_addr_t is not an available 'typedefed' type */
  189. #define in_addr_t unsigned long
  190. /* Define as the return type of signal handlers (int or void). */
  191. #define RETSIGTYPE void
  192. /* Define ssize_t if it is not an available 'typedefed' type */
  193. #if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || defined(__POCC__)
  194. #elif defined(_WIN64)
  195. #define ssize_t __int64
  196. #else
  197. #define ssize_t int
  198. #endif
  199. /* Define to 'int' if socklen_t is not an available 'typedefed' type */
  200. #ifndef HAVE_WS2TCPIP_H
  201. #define socklen_t int
  202. #endif
  203. /* ---------------------------------------------------------------- */
  204. /* TYPE SIZES */
  205. /* ---------------------------------------------------------------- */
  206. /* The number of bytes in a long double. */
  207. #define SIZEOF_LONG_DOUBLE 16
  208. /* The number of bytes in a long long. */
  209. /* #define SIZEOF_LONG_LONG 8 */
  210. /* Undef SIZEOF_CURL_OFF_T if already defined. */
  211. #ifdef SIZEOF_CURL_OFF_T
  212. #undef SIZEOF_CURL_OFF_T
  213. #endif
  214. /* Define SIZEOF_CURL_OFF_T as computed by sizeof(curl_off_t) */
  215. #define SIZEOF_CURL_OFF_T 4
  216. /* ---------------------------------------------------------------- */
  217. /* STRUCT RELATED */
  218. /* ---------------------------------------------------------------- */
  219. /* Define this if you have struct sockaddr_storage */
  220. /* #define HAVE_STRUCT_SOCKADDR_STORAGE 1 */
  221. /* Define this if you have struct timeval */
  222. #define HAVE_STRUCT_TIMEVAL 1
  223. /* ---------------------------------------------------------------- */
  224. /* COMPILER SPECIFIC */
  225. /* ---------------------------------------------------------------- */
  226. /* Undef keyword 'const' if it does not work. */
  227. /* #undef const */
  228. /* ---------------------------------------------------------------- */
  229. /* LDAP LIBRARY FILES */
  230. /* ---------------------------------------------------------------- */
  231. /* lber dynamic library file */
  232. /* #define DL_LBER_FILE */
  233. /* ldap dynamic library file */
  234. /* #define DL_LDAP_FILE "wldap32.dll" */
  235. /* ---------------------------------------------------------------- */
  236. /* ADDITIONAL DEFINITIONS */
  237. /* ---------------------------------------------------------------- */
  238. /* Defines set for VS2005 to _not_ deprecate a few functions we use. */
  239. #define _CRT_SECURE_NO_DEPRECATE 1
  240. #define _CRT_NONSTDC_NO_DEPRECATE 1
  241. /* Define cpu-machine-OS */
  242. #undef OS
  243. #define OS "i386-pc-win32ce"
  244. /* Name of package */
  245. #define PACKAGE "curl"
  246. /* ---------------------------------------------------------------- */
  247. /* WinCE */
  248. /* ---------------------------------------------------------------- */
  249. #define CURL_DISABLE_FILE 1
  250. #define CURL_DISABLE_TELNET 1
  251. #define CURL_DISABLE_LDAP 1
  252. #define WITHOUT_MM_LIB 1
  253. #ifdef HAVE_WINDOWS_H
  254. # ifndef WIN32_LEAN_AND_MEAN
  255. # define WIN32_LEAN_AND_MEAN
  256. # endif
  257. # include <windows.h>
  258. # ifdef HAVE_WINSOCK2_H
  259. # include <winsock2.h>
  260. # ifdef HAVE_WS2TCPIP_H
  261. # include <ws2tcpip.h>
  262. # endif
  263. # else
  264. # ifdef HAVE_WINSOCK_H
  265. # include <winsock.h>
  266. # endif
  267. # endif
  268. # include <process.h>
  269. #endif
  270. #define ENOSPC 1
  271. #define ENOMEM 2
  272. #define EAGAIN 3
  273. extern int stat(const char *path,struct stat *buffer );
  274. #endif /* __LIB_CONFIG_WIN32CE_H */