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