1 #ifndef __CURL_CURLBUILD_H
2 #define __CURL_CURLBUILD_H
3 /***************************************************************************
5 * Project ___| | | | _ \| |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
10 * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
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.
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.
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
23 ***************************************************************************/
25 /* ================================================================ */
26 /* NOTES FOR CONFIGURE CAPABLE SYSTEMS */
27 /* ================================================================ */
33 * Nothing in this file is intended to be modified or adjusted by the
34 * curl library user nor by the curl library builder.
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/
40 * This header file shall only export symbols which are 'curl' or 'CURL'
41 * prefixed, otherwise public name space would be polluted.
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:
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.
56 /* ================================================================ */
57 /* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */
58 /* ================================================================ */
60 #ifdef CURL_SIZEOF_LONG
61 # error "CURL_SIZEOF_LONG shall not be defined except in curlbuild.h"
62 Error Compilation_aborted_CURL_SIZEOF_LONG_already_defined
65 #ifdef CURL_TYPEOF_CURL_SOCKLEN_T
66 # error "CURL_TYPEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h"
67 Error Compilation_aborted_CURL_TYPEOF_CURL_SOCKLEN_T_already_defined
70 #ifdef CURL_SIZEOF_CURL_SOCKLEN_T
71 # error "CURL_SIZEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h"
72 Error Compilation_aborted_CURL_SIZEOF_CURL_SOCKLEN_T_already_defined
74 #ifdef CURL_TYPEOF_CURL_OFF_T
75 # error "CURL_TYPEOF_CURL_OFF_T shall not be defined except in curlbuild.h"
76 Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_already_defined
79 #ifdef CURL_FORMAT_CURL_OFF_T
80 # error "CURL_FORMAT_CURL_OFF_T shall not be defined except in curlbuild.h"
81 Error Compilation_aborted_CURL_FORMAT_CURL_OFF_T_already_defined
84 #ifdef CURL_FORMAT_CURL_OFF_TU
85 # error "CURL_FORMAT_CURL_OFF_TU shall not be defined except in curlbuild.h"
86 Error Compilation_aborted_CURL_FORMAT_CURL_OFF_TU_already_defined
89 #ifdef CURL_FORMAT_OFF_T
90 # error "CURL_FORMAT_OFF_T shall not be defined except in curlbuild.h"
91 Error Compilation_aborted_CURL_FORMAT_OFF_T_already_defined
94 #ifdef CURL_SIZEOF_CURL_OFF_T
95 # error "CURL_SIZEOF_CURL_OFF_T shall not be defined except in curlbuild.h"
96 Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_already_defined
99 #ifdef CURL_SUFFIX_CURL_OFF_T
100 # error "CURL_SUFFIX_CURL_OFF_T shall not be defined except in curlbuild.h"
101 Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_already_defined
104 #ifdef CURL_SUFFIX_CURL_OFF_TU
105 # error "CURL_SUFFIX_CURL_OFF_TU shall not be defined except in curlbuild.h"
106 Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_already_defined
109 /* ================================================================ */
110 /* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */
111 /* ================================================================ */
113 /* Configure process defines this to 1 when it finds out that system */
114 /* header file sys/types.h must be included by the external interface. */
115 #cmakedefine CURL_PULL_SYS_TYPES_H ${CURL_PULL_SYS_TYPES_H}
116 #ifdef CURL_PULL_SYS_TYPES_H
117 # include <sys/types.h>
120 /* Configure process defines this to 1 when it finds out that system */
121 /* header file stdint.h must be included by the external interface. */
122 #cmakedefine CURL_PULL_STDINT_H ${CURL_PULL_STDINT_H}
123 #ifdef CURL_PULL_STDINT_H
127 /* Configure process defines this to 1 when it finds out that system */
128 /* header file inttypes.h must be included by the external interface. */
129 #cmakedefine CURL_PULL_INTTYPES_H ${CURL_PULL_INTTYPES_H}
130 #ifdef CURL_PULL_INTTYPES_H
131 # include <inttypes.h>
134 /* The size of `long', as computed by sizeof. */
135 #cmakedefine CURL_SIZEOF_LONG ${CURL_SIZEOF_LONG}
137 /* Integral data type used for curl_socklen_t. */
138 #cmakedefine CURL_TYPEOF_CURL_SOCKLEN_T ${CURL_TYPEOF_CURL_SOCKLEN_T}
140 /* on windows socklen_t is in here */
142 # include <winsock2.h>
143 # include <ws2tcpip.h>
146 #ifdef HAVE_SYS_SOCKET_H
147 # include <sys/socket.h>
150 /* Data type definition of curl_socklen_t. */
151 typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t;
153 /* The size of `curl_socklen_t', as computed by sizeof. */
154 #cmakedefine CURL_SIZEOF_CURL_SOCKLEN_T ${CURL_SIZEOF_CURL_SOCKLEN_T}
156 /* Signed integral data type used for curl_off_t. */
157 #cmakedefine CURL_TYPEOF_CURL_OFF_T ${CURL_TYPEOF_CURL_OFF_T}
159 /* Data type definition of curl_off_t. */
160 typedef CURL_TYPEOF_CURL_OFF_T curl_off_t;
162 /* curl_off_t formatting string directive without "%" conversion specifier. */
163 #cmakedefine CURL_FORMAT_CURL_OFF_T "${CURL_FORMAT_CURL_OFF_T}"
165 /* unsigned curl_off_t formatting string without "%" conversion specifier. */
166 #cmakedefine CURL_FORMAT_CURL_OFF_TU "${CURL_FORMAT_CURL_OFF_TU}"
168 /* curl_off_t formatting string directive with "%" conversion specifier. */
169 #cmakedefine CURL_FORMAT_OFF_T "${CURL_FORMAT_OFF_T}"
171 /* The size of `curl_off_t', as computed by sizeof. */
172 #cmakedefine CURL_SIZEOF_CURL_OFF_T ${CURL_SIZEOF_CURL_OFF_T}
174 /* curl_off_t constant suffix. */
175 #cmakedefine CURL_SUFFIX_CURL_OFF_T ${CURL_SUFFIX_CURL_OFF_T}
177 /* unsigned curl_off_t constant suffix. */
178 #cmakedefine CURL_SUFFIX_CURL_OFF_TU ${CURL_SUFFIX_CURL_OFF_TU}
180 #endif /* __CURL_CURLBUILD_H */