curlbuild.h 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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 - 2012, 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. ***************************************************************************/
  25. /* ================================================================ */
  26. /* NOTES FOR CONFIGURE CAPABLE SYSTEMS */
  27. /* ================================================================ */
  28. /*
  29. * NOTE 1:
  30. * -------
  31. *
  32. * Nothing in this file is intended to be modified or adjusted by the
  33. * curl library user nor by the curl library builder.
  34. *
  35. * If you think that something actually needs to be changed, adjusted
  36. * or fixed in this file, then, report it on the libcurl development
  37. * mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/
  38. *
  39. * This header file shall only export symbols which are 'curl' or 'CURL'
  40. * prefixed, otherwise public name space would be polluted.
  41. *
  42. * NOTE 2:
  43. * -------
  44. *
  45. * Right now you might be staring at file include/curl/curlbuild.h.in or
  46. * at file include/curl/curlbuild.h, this is due to the following reason:
  47. *
  48. * On systems capable of running the configure script, the configure process
  49. * will overwrite the distributed include/curl/curlbuild.h file with one that
  50. * is suitable and specific to the library being configured and built, which
  51. * is generated from the include/curl/curlbuild.h.in template file.
  52. *
  53. */
  54. /* ================================================================ */
  55. /* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */
  56. /* ================================================================ */
  57. #ifdef CURL_SIZEOF_LONG
  58. #error "CURL_SIZEOF_LONG shall not be defined except in curlbuild.h"
  59. Error Compilation_aborted_CURL_SIZEOF_LONG_already_defined
  60. #endif
  61. #ifdef CURL_TYPEOF_CURL_SOCKLEN_T
  62. #error "CURL_TYPEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h"
  63. Error Compilation_aborted_CURL_TYPEOF_CURL_SOCKLEN_T_already_defined
  64. #endif
  65. #ifdef CURL_SIZEOF_CURL_SOCKLEN_T
  66. #error "CURL_SIZEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h"
  67. Error Compilation_aborted_CURL_SIZEOF_CURL_SOCKLEN_T_already_defined
  68. #endif
  69. #ifdef CURL_TYPEOF_CURL_OFF_T
  70. #error "CURL_TYPEOF_CURL_OFF_T shall not be defined except in curlbuild.h"
  71. Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_already_defined
  72. #endif
  73. #ifdef CURL_FORMAT_CURL_OFF_T
  74. #error "CURL_FORMAT_CURL_OFF_T shall not be defined except in curlbuild.h"
  75. Error Compilation_aborted_CURL_FORMAT_CURL_OFF_T_already_defined
  76. #endif
  77. #ifdef CURL_FORMAT_CURL_OFF_TU
  78. #error "CURL_FORMAT_CURL_OFF_TU shall not be defined except in curlbuild.h"
  79. Error Compilation_aborted_CURL_FORMAT_CURL_OFF_TU_already_defined
  80. #endif
  81. #ifdef CURL_FORMAT_OFF_T
  82. #error "CURL_FORMAT_OFF_T shall not be defined except in curlbuild.h"
  83. Error Compilation_aborted_CURL_FORMAT_OFF_T_already_defined
  84. #endif
  85. #ifdef CURL_SIZEOF_CURL_OFF_T
  86. #error "CURL_SIZEOF_CURL_OFF_T shall not be defined except in curlbuild.h"
  87. Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_already_defined
  88. #endif
  89. #ifdef CURL_SUFFIX_CURL_OFF_T
  90. #error "CURL_SUFFIX_CURL_OFF_T shall not be defined except in curlbuild.h"
  91. Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_already_defined
  92. #endif
  93. #ifdef CURL_SUFFIX_CURL_OFF_TU
  94. #error "CURL_SUFFIX_CURL_OFF_TU shall not be defined except in curlbuild.h"
  95. Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_already_defined
  96. #endif
  97. /* ================================================================ */
  98. /* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */
  99. /* ================================================================ */
  100. /* Configure process defines this to 1 when it finds out that system */
  101. /* header file ws2tcpip.h must be included by the external interface. */
  102. /* #undef CURL_PULL_WS2TCPIP_H */
  103. #ifdef CURL_PULL_WS2TCPIP_H
  104. # ifndef WIN32_LEAN_AND_MEAN
  105. # define WIN32_LEAN_AND_MEAN
  106. # endif
  107. # include <windows.h>
  108. # include <winsock2.h>
  109. # include <ws2tcpip.h>
  110. #endif
  111. /* Configure process defines this to 1 when it finds out that system */
  112. /* header file sys/types.h must be included by the external interface. */
  113. #define CURL_PULL_SYS_TYPES_H 1
  114. #ifdef CURL_PULL_SYS_TYPES_H
  115. # include <sys/types.h>
  116. #endif
  117. /* Configure process defines this to 1 when it finds out that system */
  118. /* header file stdint.h must be included by the external interface. */
  119. /* #undef CURL_PULL_STDINT_H */
  120. #ifdef CURL_PULL_STDINT_H
  121. # include <stdint.h>
  122. #endif
  123. /* Configure process defines this to 1 when it finds out that system */
  124. /* header file inttypes.h must be included by the external interface. */
  125. /* #undef CURL_PULL_INTTYPES_H */
  126. #ifdef CURL_PULL_INTTYPES_H
  127. # include <inttypes.h>
  128. #endif
  129. /* Configure process defines this to 1 when it finds out that system */
  130. /* header file sys/socket.h must be included by the external interface. */
  131. #define CURL_PULL_SYS_SOCKET_H 1
  132. #ifdef CURL_PULL_SYS_SOCKET_H
  133. # include <sys/socket.h>
  134. #endif
  135. /* Configure process defines this to 1 when it finds out that system */
  136. /* header file sys/poll.h must be included by the external interface. */
  137. /* #undef CURL_PULL_SYS_POLL_H */
  138. #ifdef CURL_PULL_SYS_POLL_H
  139. # include <sys/poll.h>
  140. #endif
  141. /* The size of `long', as computed by sizeof. */
  142. #define CURL_SIZEOF_LONG 8
  143. /* Integral data type used for curl_socklen_t. */
  144. #define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
  145. /* The size of `curl_socklen_t', as computed by sizeof. */
  146. #define CURL_SIZEOF_CURL_SOCKLEN_T 4
  147. /* Data type definition of curl_socklen_t. */
  148. typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t;
  149. /* Signed integral data type used for curl_off_t. */
  150. #define CURL_TYPEOF_CURL_OFF_T long
  151. /* Data type definition of curl_off_t. */
  152. typedef CURL_TYPEOF_CURL_OFF_T curl_off_t;
  153. /* curl_off_t formatting string directive without "%" conversion specifier. */
  154. #define CURL_FORMAT_CURL_OFF_T "ld"
  155. /* unsigned curl_off_t formatting string without "%" conversion specifier. */
  156. #define CURL_FORMAT_CURL_OFF_TU "lu"
  157. /* curl_off_t formatting string directive with "%" conversion specifier. */
  158. #define CURL_FORMAT_OFF_T "%ld"
  159. /* The size of `curl_off_t', as computed by sizeof. */
  160. #define CURL_SIZEOF_CURL_OFF_T 8
  161. /* curl_off_t constant suffix. */
  162. #define CURL_SUFFIX_CURL_OFF_T L
  163. /* unsigned curl_off_t constant suffix. */
  164. #define CURL_SUFFIX_CURL_OFF_TU UL
  165. #endif /* __CURL_CURLBUILD_H */