curlbuild.h 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584
  1. #ifndef __CURL_CURLBUILD_H
  2. #define __CURL_CURLBUILD_H
  3. /***************************************************************************
  4. * _ _ ____ _
  5. * Project ___| | | | _ \| |
  6. * / __| | | | |_) | |
  7. * | (__| |_| | _ <| |___
  8. * \___|\___/|_| \_\_____|
  9. *
  10. * Copyright (C) 1998 - 2009, 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 http://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. * $Id: curlbuild.h.dist,v 1.29 2009-10-27 16:56:20 yangtse Exp $
  24. ***************************************************************************/
  25. /* ================================================================ */
  26. /* NOTES FOR CONFIGURE CAPABLE SYSTEMS */
  27. /* ================================================================ */
  28. /*
  29. * NOTE 1:
  30. * -------
  31. *
  32. * See file include/curl/curlbuild.h.in, run configure, and forget
  33. * that this file exists it is only used for non-configure systems.
  34. * But you can keep reading if you want ;-)
  35. *
  36. */
  37. /* ================================================================ */
  38. /* NOTES FOR NON-CONFIGURE SYSTEMS */
  39. /* ================================================================ */
  40. /*
  41. * NOTE 1:
  42. * -------
  43. *
  44. * Nothing in this file is intended to be modified or adjusted by the
  45. * curl library user nor by the curl library builder.
  46. *
  47. * If you think that something actually needs to be changed, adjusted
  48. * or fixed in this file, then, report it on the libcurl development
  49. * mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/
  50. *
  51. * Try to keep one section per platform, compiler and architecture,
  52. * otherwise, if an existing section is reused for a different one and
  53. * later on the original is adjusted, probably the piggybacking one can
  54. * be adversely changed.
  55. *
  56. * In order to differentiate between platforms/compilers/architectures
  57. * use only compiler built in predefined preprocessor symbols.
  58. *
  59. * This header file shall only export symbols which are 'curl' or 'CURL'
  60. * prefixed, otherwise public name space would be polluted.
  61. *
  62. * NOTE 2:
  63. * -------
  64. *
  65. * For any given platform/compiler curl_off_t must be typedef'ed to a
  66. * 64-bit wide signed integral data type. The width of this data type
  67. * must remain constant and independent of any possible large file
  68. * support settings.
  69. *
  70. * As an exception to the above, curl_off_t shall be typedef'ed to a
  71. * 32-bit wide signed integral data type if there is no 64-bit type.
  72. *
  73. * As a general rule, curl_off_t shall not be mapped to off_t. This
  74. * rule shall only be violated if off_t is the only 64-bit data type
  75. * available and the size of off_t is independent of large file support
  76. * settings. Keep your build on the safe side avoiding an off_t gating.
  77. * If you have a 64-bit off_t then take for sure that another 64-bit
  78. * data type exists, dig deeper and you will find it.
  79. *
  80. * NOTE 3:
  81. * -------
  82. *
  83. * Right now you might be staring at file include/curl/curlbuild.h.dist or
  84. * at file include/curl/curlbuild.h, this is due to the following reason:
  85. * file include/curl/curlbuild.h.dist is renamed to include/curl/curlbuild.h
  86. * when the libcurl source code distribution archive file is created.
  87. *
  88. * File include/curl/curlbuild.h.dist is not included in the distribution
  89. * archive. File include/curl/curlbuild.h is not present in the CVS tree.
  90. *
  91. * The distributed include/curl/curlbuild.h file is only intended to be used
  92. * on systems which can not run the also distributed configure script.
  93. *
  94. * On systems capable of running the configure script, the configure process
  95. * will overwrite the distributed include/curl/curlbuild.h file with one that
  96. * is suitable and specific to the library being configured and built, which
  97. * is generated from the include/curl/curlbuild.h.in template file.
  98. *
  99. * If you check out from CVS on a non-configure platform, you must run the
  100. * appropriate buildconf* script to set up curlbuild.h and other local files.
  101. *
  102. */
  103. /* ================================================================ */
  104. /* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */
  105. /* ================================================================ */
  106. #ifdef CURL_SIZEOF_LONG
  107. # error "CURL_SIZEOF_LONG shall not be defined except in curlbuild.h"
  108. Error Compilation_aborted_CURL_SIZEOF_LONG_already_defined
  109. #endif
  110. #ifdef CURL_TYPEOF_CURL_SOCKLEN_T
  111. # error "CURL_TYPEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h"
  112. Error Compilation_aborted_CURL_TYPEOF_CURL_SOCKLEN_T_already_defined
  113. #endif
  114. #ifdef CURL_SIZEOF_CURL_SOCKLEN_T
  115. # error "CURL_SIZEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h"
  116. Error Compilation_aborted_CURL_SIZEOF_CURL_SOCKLEN_T_already_defined
  117. #endif
  118. #ifdef CURL_TYPEOF_CURL_OFF_T
  119. # error "CURL_TYPEOF_CURL_OFF_T shall not be defined except in curlbuild.h"
  120. Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_already_defined
  121. #endif
  122. #ifdef CURL_FORMAT_CURL_OFF_T
  123. # error "CURL_FORMAT_CURL_OFF_T shall not be defined except in curlbuild.h"
  124. Error Compilation_aborted_CURL_FORMAT_CURL_OFF_T_already_defined
  125. #endif
  126. #ifdef CURL_FORMAT_CURL_OFF_TU
  127. # error "CURL_FORMAT_CURL_OFF_TU shall not be defined except in curlbuild.h"
  128. Error Compilation_aborted_CURL_FORMAT_CURL_OFF_TU_already_defined
  129. #endif
  130. #ifdef CURL_FORMAT_OFF_T
  131. # error "CURL_FORMAT_OFF_T shall not be defined except in curlbuild.h"
  132. Error Compilation_aborted_CURL_FORMAT_OFF_T_already_defined
  133. #endif
  134. #ifdef CURL_SIZEOF_CURL_OFF_T
  135. # error "CURL_SIZEOF_CURL_OFF_T shall not be defined except in curlbuild.h"
  136. Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_already_defined
  137. #endif
  138. #ifdef CURL_SUFFIX_CURL_OFF_T
  139. # error "CURL_SUFFIX_CURL_OFF_T shall not be defined except in curlbuild.h"
  140. Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_already_defined
  141. #endif
  142. #ifdef CURL_SUFFIX_CURL_OFF_TU
  143. # error "CURL_SUFFIX_CURL_OFF_TU shall not be defined except in curlbuild.h"
  144. Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_already_defined
  145. #endif
  146. /* ================================================================ */
  147. /* EXTERNAL INTERFACE SETTINGS FOR NON-CONFIGURE SYSTEMS ONLY */
  148. /* ================================================================ */
  149. #if defined(__DJGPP__) || defined(__GO32__)
  150. # if defined(__DJGPP__) && (__DJGPP__ > 1)
  151. # define CURL_SIZEOF_LONG 4
  152. # define CURL_TYPEOF_CURL_OFF_T long long
  153. # define CURL_FORMAT_CURL_OFF_T "lld"
  154. # define CURL_FORMAT_CURL_OFF_TU "llu"
  155. # define CURL_FORMAT_OFF_T "%lld"
  156. # define CURL_SIZEOF_CURL_OFF_T 8
  157. # define CURL_SUFFIX_CURL_OFF_T LL
  158. # define CURL_SUFFIX_CURL_OFF_TU ULL
  159. # else
  160. # define CURL_SIZEOF_LONG 4
  161. # define CURL_TYPEOF_CURL_OFF_T long
  162. # define CURL_FORMAT_CURL_OFF_T "ld"
  163. # define CURL_FORMAT_CURL_OFF_TU "lu"
  164. # define CURL_FORMAT_OFF_T "%ld"
  165. # define CURL_SIZEOF_CURL_OFF_T 4
  166. # define CURL_SUFFIX_CURL_OFF_T L
  167. # define CURL_SUFFIX_CURL_OFF_TU UL
  168. # endif
  169. # define CURL_TYPEOF_CURL_SOCKLEN_T int
  170. # define CURL_SIZEOF_CURL_SOCKLEN_T 4
  171. #elif defined(__SALFORDC__)
  172. # define CURL_SIZEOF_LONG 4
  173. # define CURL_TYPEOF_CURL_OFF_T long
  174. # define CURL_FORMAT_CURL_OFF_T "ld"
  175. # define CURL_FORMAT_CURL_OFF_TU "lu"
  176. # define CURL_FORMAT_OFF_T "%ld"
  177. # define CURL_SIZEOF_CURL_OFF_T 4
  178. # define CURL_SUFFIX_CURL_OFF_T L
  179. # define CURL_SUFFIX_CURL_OFF_TU UL
  180. # define CURL_TYPEOF_CURL_SOCKLEN_T int
  181. # define CURL_SIZEOF_CURL_SOCKLEN_T 4
  182. #elif defined(__BORLANDC__)
  183. # if (__BORLANDC__ < 0x520)
  184. # define CURL_SIZEOF_LONG 4
  185. # define CURL_TYPEOF_CURL_OFF_T long
  186. # define CURL_FORMAT_CURL_OFF_T "ld"
  187. # define CURL_FORMAT_CURL_OFF_TU "lu"
  188. # define CURL_FORMAT_OFF_T "%ld"
  189. # define CURL_SIZEOF_CURL_OFF_T 4
  190. # define CURL_SUFFIX_CURL_OFF_T L
  191. # define CURL_SUFFIX_CURL_OFF_TU UL
  192. # else
  193. # define CURL_SIZEOF_LONG 4
  194. # define CURL_TYPEOF_CURL_OFF_T __int64
  195. # define CURL_FORMAT_CURL_OFF_T "I64d"
  196. # define CURL_FORMAT_CURL_OFF_TU "I64u"
  197. # define CURL_FORMAT_OFF_T "%I64d"
  198. # define CURL_SIZEOF_CURL_OFF_T 8
  199. # define CURL_SUFFIX_CURL_OFF_T i64
  200. # define CURL_SUFFIX_CURL_OFF_TU ui64
  201. # endif
  202. # define CURL_TYPEOF_CURL_SOCKLEN_T int
  203. # define CURL_SIZEOF_CURL_SOCKLEN_T 4
  204. #elif defined(__TURBOC__)
  205. # define CURL_SIZEOF_LONG 4
  206. # define CURL_TYPEOF_CURL_OFF_T long
  207. # define CURL_FORMAT_CURL_OFF_T "ld"
  208. # define CURL_FORMAT_CURL_OFF_TU "lu"
  209. # define CURL_FORMAT_OFF_T "%ld"
  210. # define CURL_SIZEOF_CURL_OFF_T 4
  211. # define CURL_SUFFIX_CURL_OFF_T L
  212. # define CURL_SUFFIX_CURL_OFF_TU UL
  213. # define CURL_TYPEOF_CURL_SOCKLEN_T int
  214. # define CURL_SIZEOF_CURL_SOCKLEN_T 4
  215. #elif defined(__WATCOMC__)
  216. # if defined(__386__)
  217. # define CURL_SIZEOF_LONG 4
  218. # define CURL_TYPEOF_CURL_OFF_T __int64
  219. # define CURL_FORMAT_CURL_OFF_T "I64d"
  220. # define CURL_FORMAT_CURL_OFF_TU "I64u"
  221. # define CURL_FORMAT_OFF_T "%I64d"
  222. # define CURL_SIZEOF_CURL_OFF_T 8
  223. # define CURL_SUFFIX_CURL_OFF_T i64
  224. # define CURL_SUFFIX_CURL_OFF_TU ui64
  225. # else
  226. # define CURL_SIZEOF_LONG 4
  227. # define CURL_TYPEOF_CURL_OFF_T long
  228. # define CURL_FORMAT_CURL_OFF_T "ld"
  229. # define CURL_FORMAT_CURL_OFF_TU "lu"
  230. # define CURL_FORMAT_OFF_T "%ld"
  231. # define CURL_SIZEOF_CURL_OFF_T 4
  232. # define CURL_SUFFIX_CURL_OFF_T L
  233. # define CURL_SUFFIX_CURL_OFF_TU UL
  234. # endif
  235. # define CURL_TYPEOF_CURL_SOCKLEN_T int
  236. # define CURL_SIZEOF_CURL_SOCKLEN_T 4
  237. #elif defined(__POCC__)
  238. # if (__POCC__ < 280)
  239. # define CURL_SIZEOF_LONG 4
  240. # define CURL_TYPEOF_CURL_OFF_T long
  241. # define CURL_FORMAT_CURL_OFF_T "ld"
  242. # define CURL_FORMAT_CURL_OFF_TU "lu"
  243. # define CURL_FORMAT_OFF_T "%ld"
  244. # define CURL_SIZEOF_CURL_OFF_T 4
  245. # define CURL_SUFFIX_CURL_OFF_T L
  246. # define CURL_SUFFIX_CURL_OFF_TU UL
  247. # elif defined(_MSC_VER)
  248. # define CURL_SIZEOF_LONG 4
  249. # define CURL_TYPEOF_CURL_OFF_T __int64
  250. # define CURL_FORMAT_CURL_OFF_T "I64d"
  251. # define CURL_FORMAT_CURL_OFF_TU "I64u"
  252. # define CURL_FORMAT_OFF_T "%I64d"
  253. # define CURL_SIZEOF_CURL_OFF_T 8
  254. # define CURL_SUFFIX_CURL_OFF_T i64
  255. # define CURL_SUFFIX_CURL_OFF_TU ui64
  256. # else
  257. # define CURL_SIZEOF_LONG 4
  258. # define CURL_TYPEOF_CURL_OFF_T long long
  259. # define CURL_FORMAT_CURL_OFF_T "lld"
  260. # define CURL_FORMAT_CURL_OFF_TU "llu"
  261. # define CURL_FORMAT_OFF_T "%lld"
  262. # define CURL_SIZEOF_CURL_OFF_T 8
  263. # define CURL_SUFFIX_CURL_OFF_T LL
  264. # define CURL_SUFFIX_CURL_OFF_TU ULL
  265. # endif
  266. # define CURL_TYPEOF_CURL_SOCKLEN_T int
  267. # define CURL_SIZEOF_CURL_SOCKLEN_T 4
  268. #elif defined(__LCC__)
  269. # define CURL_SIZEOF_LONG 4
  270. # define CURL_TYPEOF_CURL_OFF_T long
  271. # define CURL_FORMAT_CURL_OFF_T "ld"
  272. # define CURL_FORMAT_CURL_OFF_TU "lu"
  273. # define CURL_FORMAT_OFF_T "%ld"
  274. # define CURL_SIZEOF_CURL_OFF_T 4
  275. # define CURL_SUFFIX_CURL_OFF_T L
  276. # define CURL_SUFFIX_CURL_OFF_TU UL
  277. # define CURL_TYPEOF_CURL_SOCKLEN_T int
  278. # define CURL_SIZEOF_CURL_SOCKLEN_T 4
  279. #elif defined(__SYMBIAN32__)
  280. # if defined(__EABI__) /* Treat all ARM compilers equally */
  281. # define CURL_SIZEOF_LONG 4
  282. # define CURL_TYPEOF_CURL_OFF_T long long
  283. # define CURL_FORMAT_CURL_OFF_T "lld"
  284. # define CURL_FORMAT_CURL_OFF_TU "llu"
  285. # define CURL_FORMAT_OFF_T "%lld"
  286. # define CURL_SIZEOF_CURL_OFF_T 8
  287. # define CURL_SUFFIX_CURL_OFF_T LL
  288. # define CURL_SUFFIX_CURL_OFF_TU ULL
  289. # elif defined(__CW32__)
  290. # pragma longlong on
  291. # define CURL_SIZEOF_LONG 4
  292. # define CURL_TYPEOF_CURL_OFF_T long long
  293. # define CURL_FORMAT_CURL_OFF_T "lld"
  294. # define CURL_FORMAT_CURL_OFF_TU "llu"
  295. # define CURL_FORMAT_OFF_T "%lld"
  296. # define CURL_SIZEOF_CURL_OFF_T 8
  297. # define CURL_SUFFIX_CURL_OFF_T LL
  298. # define CURL_SUFFIX_CURL_OFF_TU ULL
  299. # elif defined(__VC32__)
  300. # define CURL_SIZEOF_LONG 4
  301. # define CURL_TYPEOF_CURL_OFF_T __int64
  302. # define CURL_FORMAT_CURL_OFF_T "lld"
  303. # define CURL_FORMAT_CURL_OFF_TU "llu"
  304. # define CURL_FORMAT_OFF_T "%lld"
  305. # define CURL_SIZEOF_CURL_OFF_T 8
  306. # define CURL_SUFFIX_CURL_OFF_T LL
  307. # define CURL_SUFFIX_CURL_OFF_TU ULL
  308. # endif
  309. # define CURL_TYPEOF_CURL_SOCKLEN_T unsigned int
  310. # define CURL_SIZEOF_CURL_SOCKLEN_T 4
  311. #elif defined(__MWERKS__)
  312. # define CURL_SIZEOF_LONG 4
  313. # define CURL_TYPEOF_CURL_OFF_T long long
  314. # define CURL_FORMAT_CURL_OFF_T "lld"
  315. # define CURL_FORMAT_CURL_OFF_TU "llu"
  316. # define CURL_FORMAT_OFF_T "%lld"
  317. # define CURL_SIZEOF_CURL_OFF_T 8
  318. # define CURL_SUFFIX_CURL_OFF_T LL
  319. # define CURL_SUFFIX_CURL_OFF_TU ULL
  320. # define CURL_TYPEOF_CURL_SOCKLEN_T int
  321. # define CURL_SIZEOF_CURL_SOCKLEN_T 4
  322. #elif defined(_WIN32_WCE)
  323. # define CURL_SIZEOF_LONG 4
  324. # define CURL_TYPEOF_CURL_OFF_T __int64
  325. # define CURL_FORMAT_CURL_OFF_T "I64d"
  326. # define CURL_FORMAT_CURL_OFF_TU "I64u"
  327. # define CURL_FORMAT_OFF_T "%I64d"
  328. # define CURL_SIZEOF_CURL_OFF_T 8
  329. # define CURL_SUFFIX_CURL_OFF_T i64
  330. # define CURL_SUFFIX_CURL_OFF_TU ui64
  331. # define CURL_TYPEOF_CURL_SOCKLEN_T int
  332. # define CURL_SIZEOF_CURL_SOCKLEN_T 4
  333. #elif defined(__MINGW32__)
  334. # define CURL_SIZEOF_LONG 4
  335. # define CURL_TYPEOF_CURL_OFF_T long long
  336. # define CURL_FORMAT_CURL_OFF_T "I64d"
  337. # define CURL_FORMAT_CURL_OFF_TU "I64u"
  338. # define CURL_FORMAT_OFF_T "%I64d"
  339. # define CURL_SIZEOF_CURL_OFF_T 8
  340. # define CURL_SUFFIX_CURL_OFF_T LL
  341. # define CURL_SUFFIX_CURL_OFF_TU ULL
  342. # define CURL_TYPEOF_CURL_SOCKLEN_T int
  343. # define CURL_SIZEOF_CURL_SOCKLEN_T 4
  344. #elif defined(__VMS)
  345. # if defined(__alpha) || defined(__ia64)
  346. # define CURL_SIZEOF_LONG 4
  347. # define CURL_TYPEOF_CURL_OFF_T long long
  348. # define CURL_FORMAT_CURL_OFF_T "lld"
  349. # define CURL_FORMAT_CURL_OFF_TU "llu"
  350. # define CURL_FORMAT_OFF_T "%lld"
  351. # define CURL_SIZEOF_CURL_OFF_T 8
  352. # define CURL_SUFFIX_CURL_OFF_T LL
  353. # define CURL_SUFFIX_CURL_OFF_TU ULL
  354. # else
  355. # define CURL_SIZEOF_LONG 4
  356. # define CURL_TYPEOF_CURL_OFF_T long
  357. # define CURL_FORMAT_CURL_OFF_T "ld"
  358. # define CURL_FORMAT_CURL_OFF_TU "lu"
  359. # define CURL_FORMAT_OFF_T "%ld"
  360. # define CURL_SIZEOF_CURL_OFF_T 4
  361. # define CURL_SUFFIX_CURL_OFF_T L
  362. # define CURL_SUFFIX_CURL_OFF_TU UL
  363. # endif
  364. # define CURL_TYPEOF_CURL_SOCKLEN_T unsigned int
  365. # define CURL_SIZEOF_CURL_SOCKLEN_T 4
  366. #elif defined(__OS400__)
  367. # if defined(__ILEC400__)
  368. # define CURL_SIZEOF_LONG 4
  369. # define CURL_TYPEOF_CURL_OFF_T long long
  370. # define CURL_FORMAT_CURL_OFF_T "lld"
  371. # define CURL_FORMAT_CURL_OFF_TU "llu"
  372. # define CURL_FORMAT_OFF_T "%lld"
  373. # define CURL_SIZEOF_CURL_OFF_T 8
  374. # define CURL_SUFFIX_CURL_OFF_T LL
  375. # define CURL_SUFFIX_CURL_OFF_TU ULL
  376. # define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
  377. # define CURL_SIZEOF_CURL_SOCKLEN_T 4
  378. # define CURL_PULL_SYS_TYPES_H 1
  379. # define CURL_PULL_SYS_SOCKET_H 1
  380. # endif
  381. #elif defined(__MVS__)
  382. # if defined(__IBMC__) || defined(__IBMCPP__)
  383. # if defined(_ILP32)
  384. # define CURL_SIZEOF_LONG 4
  385. # elif defined(_LP64)
  386. # define CURL_SIZEOF_LONG 8
  387. # endif
  388. # if defined(_LONG_LONG)
  389. # define CURL_TYPEOF_CURL_OFF_T long long
  390. # define CURL_FORMAT_CURL_OFF_T "lld"
  391. # define CURL_FORMAT_CURL_OFF_TU "llu"
  392. # define CURL_FORMAT_OFF_T "%lld"
  393. # define CURL_SIZEOF_CURL_OFF_T 8
  394. # define CURL_SUFFIX_CURL_OFF_T LL
  395. # define CURL_SUFFIX_CURL_OFF_TU ULL
  396. # elif defined(_LP64)
  397. # define CURL_TYPEOF_CURL_OFF_T long
  398. # define CURL_FORMAT_CURL_OFF_T "ld"
  399. # define CURL_FORMAT_CURL_OFF_TU "lu"
  400. # define CURL_FORMAT_OFF_T "%ld"
  401. # define CURL_SIZEOF_CURL_OFF_T 8
  402. # define CURL_SUFFIX_CURL_OFF_T L
  403. # define CURL_SUFFIX_CURL_OFF_TU UL
  404. # else
  405. # define CURL_TYPEOF_CURL_OFF_T long
  406. # define CURL_FORMAT_CURL_OFF_T "ld"
  407. # define CURL_FORMAT_CURL_OFF_TU "lu"
  408. # define CURL_FORMAT_OFF_T "%ld"
  409. # define CURL_SIZEOF_CURL_OFF_T 4
  410. # define CURL_SUFFIX_CURL_OFF_T L
  411. # define CURL_SUFFIX_CURL_OFF_TU UL
  412. # endif
  413. # define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
  414. # define CURL_SIZEOF_CURL_SOCKLEN_T 4
  415. # define CURL_PULL_SYS_TYPES_H 1
  416. # define CURL_PULL_SYS_SOCKET_H 1
  417. # endif
  418. #elif defined(__370__)
  419. # if defined(__IBMC__) || defined(__IBMCPP__)
  420. # if defined(_ILP32)
  421. # define CURL_SIZEOF_LONG 4
  422. # elif defined(_LP64)
  423. # define CURL_SIZEOF_LONG 8
  424. # endif
  425. # if defined(_LONG_LONG)
  426. # define CURL_TYPEOF_CURL_OFF_T long long
  427. # define CURL_FORMAT_CURL_OFF_T "lld"
  428. # define CURL_FORMAT_CURL_OFF_TU "llu"
  429. # define CURL_FORMAT_OFF_T "%lld"
  430. # define CURL_SIZEOF_CURL_OFF_T 8
  431. # define CURL_SUFFIX_CURL_OFF_T LL
  432. # define CURL_SUFFIX_CURL_OFF_TU ULL
  433. # elif defined(_LP64)
  434. # define CURL_TYPEOF_CURL_OFF_T long
  435. # define CURL_FORMAT_CURL_OFF_T "ld"
  436. # define CURL_FORMAT_CURL_OFF_TU "lu"
  437. # define CURL_FORMAT_OFF_T "%ld"
  438. # define CURL_SIZEOF_CURL_OFF_T 8
  439. # define CURL_SUFFIX_CURL_OFF_T L
  440. # define CURL_SUFFIX_CURL_OFF_TU UL
  441. # else
  442. # define CURL_TYPEOF_CURL_OFF_T long
  443. # define CURL_FORMAT_CURL_OFF_T "ld"
  444. # define CURL_FORMAT_CURL_OFF_TU "lu"
  445. # define CURL_FORMAT_OFF_T "%ld"
  446. # define CURL_SIZEOF_CURL_OFF_T 4
  447. # define CURL_SUFFIX_CURL_OFF_T L
  448. # define CURL_SUFFIX_CURL_OFF_TU UL
  449. # endif
  450. # define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
  451. # define CURL_SIZEOF_CURL_SOCKLEN_T 4
  452. # define CURL_PULL_SYS_TYPES_H 1
  453. # define CURL_PULL_SYS_SOCKET_H 1
  454. # endif
  455. #elif defined(TPF)
  456. # define CURL_SIZEOF_LONG 8
  457. # define CURL_TYPEOF_CURL_OFF_T long
  458. # define CURL_FORMAT_CURL_OFF_T "ld"
  459. # define CURL_FORMAT_CURL_OFF_TU "lu"
  460. # define CURL_FORMAT_OFF_T "%ld"
  461. # define CURL_SIZEOF_CURL_OFF_T 8
  462. # define CURL_SUFFIX_CURL_OFF_T L
  463. # define CURL_SUFFIX_CURL_OFF_TU UL
  464. # define CURL_TYPEOF_CURL_SOCKLEN_T int
  465. # define CURL_SIZEOF_CURL_SOCKLEN_T 4
  466. /* ===================================== */
  467. /* KEEP MSVC THE PENULTIMATE ENTRY */
  468. /* ===================================== */
  469. #elif defined(_MSC_VER)
  470. # if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
  471. # define CURL_SIZEOF_LONG 4
  472. # define CURL_TYPEOF_CURL_OFF_T __int64
  473. # define CURL_FORMAT_CURL_OFF_T "I64d"
  474. # define CURL_FORMAT_CURL_OFF_TU "I64u"
  475. # define CURL_FORMAT_OFF_T "%I64d"
  476. # define CURL_SIZEOF_CURL_OFF_T 8
  477. # define CURL_SUFFIX_CURL_OFF_T i64
  478. # define CURL_SUFFIX_CURL_OFF_TU ui64
  479. # else
  480. # define CURL_SIZEOF_LONG 4
  481. # define CURL_TYPEOF_CURL_OFF_T long
  482. # define CURL_FORMAT_CURL_OFF_T "ld"
  483. # define CURL_FORMAT_CURL_OFF_TU "lu"
  484. # define CURL_FORMAT_OFF_T "%ld"
  485. # define CURL_SIZEOF_CURL_OFF_T 4
  486. # define CURL_SUFFIX_CURL_OFF_T L
  487. # define CURL_SUFFIX_CURL_OFF_TU UL
  488. # endif
  489. # define CURL_TYPEOF_CURL_SOCKLEN_T int
  490. # define CURL_SIZEOF_CURL_SOCKLEN_T 4
  491. /* ===================================== */
  492. /* KEEP GENERIC GCC THE LAST ENTRY */
  493. /* ===================================== */
  494. #elif defined(__GNUC__)
  495. # if defined(__i386__) || defined(__ppc__)
  496. # define CURL_SIZEOF_LONG 4
  497. # define CURL_TYPEOF_CURL_OFF_T long long
  498. # define CURL_FORMAT_CURL_OFF_T "lld"
  499. # define CURL_FORMAT_CURL_OFF_TU "llu"
  500. # define CURL_FORMAT_OFF_T "%lld"
  501. # define CURL_SIZEOF_CURL_OFF_T 8
  502. # define CURL_SUFFIX_CURL_OFF_T LL
  503. # define CURL_SUFFIX_CURL_OFF_TU ULL
  504. # elif defined(__x86_64__) || defined(__ppc64__)
  505. # define CURL_SIZEOF_LONG 8
  506. # define CURL_TYPEOF_CURL_OFF_T long
  507. # define CURL_FORMAT_CURL_OFF_T "ld"
  508. # define CURL_FORMAT_CURL_OFF_TU "lu"
  509. # define CURL_FORMAT_OFF_T "%ld"
  510. # define CURL_SIZEOF_CURL_OFF_T 8
  511. # define CURL_SUFFIX_CURL_OFF_T L
  512. # define CURL_SUFFIX_CURL_OFF_TU UL
  513. # endif
  514. # define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
  515. # define CURL_SIZEOF_CURL_SOCKLEN_T 4
  516. # define CURL_PULL_SYS_TYPES_H 1
  517. # define CURL_PULL_SYS_SOCKET_H 1
  518. #else
  519. # error "Unknown non-configure build target!"
  520. Error Compilation_aborted_Unknown_non_configure_build_target
  521. #endif
  522. /* CURL_PULL_SYS_TYPES_H is defined above when inclusion of header file */
  523. /* sys/types.h is required here to properly make type definitions below. */
  524. #ifdef CURL_PULL_SYS_TYPES_H
  525. # include <sys/types.h>
  526. #endif
  527. /* CURL_PULL_SYS_SOCKET_H is defined above when inclusion of header file */
  528. /* sys/socket.h is required here to properly make type definitions below. */
  529. #ifdef CURL_PULL_SYS_SOCKET_H
  530. # include <sys/socket.h>
  531. #endif
  532. /* Data type definition of curl_socklen_t. */
  533. #ifdef CURL_TYPEOF_CURL_SOCKLEN_T
  534. typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t;
  535. #endif
  536. /* Data type definition of curl_off_t. */
  537. #ifdef CURL_TYPEOF_CURL_OFF_T
  538. typedef CURL_TYPEOF_CURL_OFF_T curl_off_t;
  539. #endif
  540. #endif /* __CURL_CURLBUILD_H */