PageRenderTime 47ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/curl/include/curl/curlbuild.h.in

http://github.com/mono/moon
Autoconf | 191 lines | 91 code | 32 blank | 68 comment | 2 complexity | 6dc199c483a4d6607f65cc8561bc3a80 MD5 | raw file
Possible License(s): CC-BY-SA-3.0, MIT, LGPL-2.1, MPL-2.0-no-copyleft-exception, GPL-3.0
  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$
  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. #undef CURL_PULL_SYS_TYPES_H
  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. #undef CURL_PULL_SYS_SOCKET_H
  132. #ifdef CURL_PULL_SYS_SOCKET_H
  133. # include <sys/socket.h>
  134. #endif
  135. /* The size of `long', as computed by sizeof. */
  136. #undef CURL_SIZEOF_LONG
  137. /* Integral data type used for curl_socklen_t. */
  138. #undef CURL_TYPEOF_CURL_SOCKLEN_T
  139. /* The size of `curl_socklen_t', as computed by sizeof. */
  140. #undef CURL_SIZEOF_CURL_SOCKLEN_T
  141. /* Data type definition of curl_socklen_t. */
  142. typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t;
  143. /* Signed integral data type used for curl_off_t. */
  144. #undef CURL_TYPEOF_CURL_OFF_T
  145. /* Data type definition of curl_off_t. */
  146. typedef CURL_TYPEOF_CURL_OFF_T curl_off_t;
  147. /* curl_off_t formatting string directive without "%" conversion specifier. */
  148. #undef CURL_FORMAT_CURL_OFF_T
  149. /* unsigned curl_off_t formatting string without "%" conversion specifier. */
  150. #undef CURL_FORMAT_CURL_OFF_TU
  151. /* curl_off_t formatting string directive with "%" conversion specifier. */
  152. #undef CURL_FORMAT_OFF_T
  153. /* The size of `curl_off_t', as computed by sizeof. */
  154. #undef CURL_SIZEOF_CURL_OFF_T
  155. /* curl_off_t constant suffix. */
  156. #undef CURL_SUFFIX_CURL_OFF_T
  157. /* unsigned curl_off_t constant suffix. */
  158. #undef CURL_SUFFIX_CURL_OFF_TU
  159. #endif /* __CURL_CURLBUILD_H */