curlbuild.h 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. /* include/curl/curlbuild.h. Generated from curlbuild.h.in by configure. */
  2. #ifndef __CURL_CURLBUILD_H
  3. #define __CURL_CURLBUILD_H
  4. /***************************************************************************
  5. * _ _ ____ _
  6. * Project ___| | | | _ \| |
  7. * / __| | | | |_) | |
  8. * | (__| |_| | _ <| |___
  9. * \___|\___/|_| \_\_____|
  10. *
  11. * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
  12. *
  13. * This software is licensed as described in the file COPYING, which
  14. * you should have received as part of this distribution. The terms
  15. * are also available at http://curl.haxx.se/docs/copyright.html.
  16. *
  17. * You may opt to use, copy, modify, merge, publish, distribute and/or sell
  18. * copies of the Software, and permit persons to whom the Software is
  19. * furnished to do so, under the terms of the COPYING file.
  20. *
  21. * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
  22. * KIND, either express or implied.
  23. *
  24. * $Id: curlbuild.h.in,v 1.8 2009-04-29 15:15:38 yangtse Exp $
  25. ***************************************************************************/
  26. /* ================================================================ */
  27. /* NOTES FOR CONFIGURE CAPABLE SYSTEMS */
  28. /* ================================================================ */
  29. /*
  30. * NOTE 1:
  31. * -------
  32. *
  33. * Nothing in this file is intended to be modified or adjusted by the
  34. * curl library user nor by the curl library builder.
  35. *
  36. * If you think that something actually needs to be changed, adjusted
  37. * or fixed in this file, then, report it on the libcurl development
  38. * mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/
  39. *
  40. * This header file shall only export symbols which are 'curl' or 'CURL'
  41. * prefixed, otherwise public name space would be polluted.
  42. *
  43. * NOTE 2:
  44. * -------
  45. *
  46. * Right now you might be staring at file include/curl/curlbuild.h.in or
  47. * at file include/curl/curlbuild.h, this is due to the following reason:
  48. *
  49. * On systems capable of running the configure script, the configure process
  50. * will overwrite the distributed include/curl/curlbuild.h file with one that
  51. * is suitable and specific to the library being configured and built, which
  52. * is generated from the include/curl/curlbuild.h.in template file.
  53. *
  54. */
  55. /* ================================================================ */
  56. /* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */
  57. /* ================================================================ */
  58. #ifdef CURL_SIZEOF_LONG
  59. # error "CURL_SIZEOF_LONG shall not be defined except in curlbuild.h"
  60. Error Compilation_aborted_CURL_SIZEOF_LONG_already_defined
  61. #endif
  62. #ifdef CURL_TYPEOF_CURL_SOCKLEN_T
  63. # error "CURL_TYPEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h"
  64. Error Compilation_aborted_CURL_TYPEOF_CURL_SOCKLEN_T_already_defined
  65. #endif
  66. #ifdef CURL_SIZEOF_CURL_SOCKLEN_T
  67. # error "CURL_SIZEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h"
  68. Error Compilation_aborted_CURL_SIZEOF_CURL_SOCKLEN_T_already_defined
  69. #endif
  70. #ifdef CURL_TYPEOF_CURL_OFF_T
  71. # error "CURL_TYPEOF_CURL_OFF_T shall not be defined except in curlbuild.h"
  72. Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_already_defined
  73. #endif
  74. #ifdef CURL_FORMAT_CURL_OFF_T
  75. # error "CURL_FORMAT_CURL_OFF_T shall not be defined except in curlbuild.h"
  76. Error Compilation_aborted_CURL_FORMAT_CURL_OFF_T_already_defined
  77. #endif
  78. #ifdef CURL_FORMAT_CURL_OFF_TU
  79. # error "CURL_FORMAT_CURL_OFF_TU shall not be defined except in curlbuild.h"
  80. Error Compilation_aborted_CURL_FORMAT_CURL_OFF_TU_already_defined
  81. #endif
  82. #ifdef CURL_FORMAT_OFF_T
  83. # error "CURL_FORMAT_OFF_T shall not be defined except in curlbuild.h"
  84. Error Compilation_aborted_CURL_FORMAT_OFF_T_already_defined
  85. #endif
  86. #ifdef CURL_SIZEOF_CURL_OFF_T
  87. # error "CURL_SIZEOF_CURL_OFF_T shall not be defined except in curlbuild.h"
  88. Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_already_defined
  89. #endif
  90. #ifdef CURL_SUFFIX_CURL_OFF_T
  91. # error "CURL_SUFFIX_CURL_OFF_T shall not be defined except in curlbuild.h"
  92. Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_already_defined
  93. #endif
  94. #ifdef CURL_SUFFIX_CURL_OFF_TU
  95. # error "CURL_SUFFIX_CURL_OFF_TU shall not be defined except in curlbuild.h"
  96. Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_already_defined
  97. #endif
  98. /* ================================================================ */
  99. /* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */
  100. /* ================================================================ */
  101. /* Configure process defines this to 1 when it finds out that system */
  102. /* header file ws2tcpip.h must be included by the external interface. */
  103. #define CURL_PULL_WS2TCPIP_H 1
  104. #ifdef CURL_PULL_WS2TCPIP_H
  105. # ifndef WIN32_LEAN_AND_MEAN
  106. # define WIN32_LEAN_AND_MEAN 1
  107. # endif
  108. # include <windows.h>
  109. # include <winsock2.h>
  110. # include <ws2tcpip.h>
  111. #endif
  112. /* Configure process defines this to 1 when it finds out that system */
  113. /* header file sys/types.h must be included by the external interface. */
  114. #define CURL_PULL_SYS_TYPES_H 1
  115. #ifdef CURL_PULL_SYS_TYPES_H
  116. # include <sys/types.h>
  117. #endif
  118. /* Configure process defines this to 1 when it finds out that system */
  119. /* header file stdint.h must be included by the external interface. */
  120. #define CURL_PULL_STDINT_H 1
  121. #ifdef CURL_PULL_STDINT_H
  122. # include <stdint.h>
  123. #endif
  124. /* Configure process defines this to 1 when it finds out that system */
  125. /* header file inttypes.h must be included by the external interface. */
  126. #define CURL_PULL_INTTYPES_H 1
  127. #ifdef CURL_PULL_INTTYPES_H
  128. # include <inttypes.h>
  129. #endif
  130. /* Configure process defines this to 1 when it finds out that system */
  131. /* header file sys/socket.h must be included by the external interface. */
  132. /* #undef CURL_PULL_SYS_SOCKET_H */
  133. #ifdef CURL_PULL_SYS_SOCKET_H
  134. # include <sys/socket.h>
  135. #endif
  136. /* The size of `long', as computed by sizeof. */
  137. #define CURL_SIZEOF_LONG 4
  138. /* Integral data type used for curl_socklen_t. */
  139. #define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
  140. /* The size of `curl_socklen_t', as computed by sizeof. */
  141. #define CURL_SIZEOF_CURL_SOCKLEN_T 4
  142. /* Data type definition of curl_socklen_t. */
  143. typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t;
  144. /* Signed integral data type used for curl_off_t. */
  145. #define CURL_TYPEOF_CURL_OFF_T int64_t
  146. /* Data type definition of curl_off_t. */
  147. typedef CURL_TYPEOF_CURL_OFF_T curl_off_t;
  148. /* curl_off_t formatting string directive without "%" conversion specifier. */
  149. #define CURL_FORMAT_CURL_OFF_T "I64d"
  150. /* unsigned curl_off_t formatting string without "%" conversion specifier. */
  151. #define CURL_FORMAT_CURL_OFF_TU "I64u"
  152. /* curl_off_t formatting string directive with "%" conversion specifier. */
  153. #define CURL_FORMAT_OFF_T "%I64d"
  154. /* The size of `curl_off_t', as computed by sizeof. */
  155. #define CURL_SIZEOF_CURL_OFF_T 8
  156. /* curl_off_t constant suffix. */
  157. #define CURL_SUFFIX_CURL_OFF_T LL
  158. /* unsigned curl_off_t constant suffix. */
  159. #define CURL_SUFFIX_CURL_OFF_TU ULL
  160. #endif /* __CURL_CURLBUILD_H */