/thirdparty/breakpad/third_party/curl/curlbuild.h

http://github.com/tomahawk-player/tomahawk · C Header · 200 lines · 85 code · 32 blank · 83 comment · 2 complexity · fe3753f4cf552e8bd4ebbce4f4d7e33f MD5 · raw file

  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. /* #undef CURL_PULL_WS2TCPIP_H */
  104. #ifdef CURL_PULL_WS2TCPIP_H
  105. # ifndef WIN32_LEAN_AND_MEAN
  106. # define WIN32_LEAN_AND_MEAN
  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. /* #undef CURL_PULL_STDINT_H */
  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. /* #undef CURL_PULL_INTTYPES_H */
  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. #define CURL_PULL_SYS_SOCKET_H 1
  133. #ifdef CURL_PULL_SYS_SOCKET_H
  134. # include <sys/socket.h>
  135. #endif
  136. /* The size of `long', as computed by sizeof. */
  137. #if defined(_M_X64) || defined(__x86_64__)
  138. #define CURL_SIZEOF_LONG 8
  139. #else
  140. #define CURL_SIZEOF_LONG 4
  141. #endif
  142. /* Integral data type used for curl_socklen_t. */
  143. #define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
  144. /* The size of `curl_socklen_t', as computed by sizeof. */
  145. #define CURL_SIZEOF_CURL_SOCKLEN_T 4
  146. /* Data type definition of curl_socklen_t. */
  147. typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t;
  148. /* Signed integral data type used for curl_off_t. */
  149. #if defined(_M_X64) || defined(__x86_64__)
  150. #define CURL_TYPEOF_CURL_OFF_T long
  151. #else
  152. #define CURL_TYPEOF_CURL_OFF_T int64_t
  153. #endif
  154. /* Data type definition of curl_off_t. */
  155. typedef CURL_TYPEOF_CURL_OFF_T curl_off_t;
  156. /* curl_off_t formatting string directive without "%" conversion specifier. */
  157. #define CURL_FORMAT_CURL_OFF_T "ld"
  158. /* unsigned curl_off_t formatting string without "%" conversion specifier. */
  159. #define CURL_FORMAT_CURL_OFF_TU "lu"
  160. /* curl_off_t formatting string directive with "%" conversion specifier. */
  161. #define CURL_FORMAT_OFF_T "%ld"
  162. /* The size of `curl_off_t', as computed by sizeof. */
  163. #define CURL_SIZEOF_CURL_OFF_T 8
  164. /* curl_off_t constant suffix. */
  165. #define CURL_SUFFIX_CURL_OFF_T L
  166. /* unsigned curl_off_t constant suffix. */
  167. #define CURL_SUFFIX_CURL_OFF_TU UL
  168. #endif /* __CURL_CURLBUILD_H */