1#ifndef __CURL_CURLBUILD_H
2#define __CURL_CURLBUILD_H
3/***************************************************************************
4 *                                  _   _ ____  _
5 *  Project                     ___| | | |  _ \| |
6 *                             / __| | | | |_) | |
7 *                            | (__| |_| |  _ <| |___
8 *                             \___|\___/|_| \_\_____|
9 *
10 * Copyright (C) 1998 - 2008, 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 ***************************************************************************/
24
25/* ================================================================ */
26/*               NOTES FOR CONFIGURE CAPABLE SYSTEMS                */
27/* ================================================================ */
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/* ================================================================ */
57/*  DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE  */
58/* ================================================================ */
59
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
63#endif
64
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
68#endif
69
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
73#endif
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
77#endif
78
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
82#endif
83
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
87#endif
88
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
92#endif
93
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
97#endif
98
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
102#endif
103
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
107#endif
108
109/* ================================================================ */
110/*  EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY  */
111/* ================================================================ */
112
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>
118#endif
119
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
124#  include <stdint.h>
125#endif
126
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>
132#endif
133
134/* The size of `long', as computed by sizeof. */
135#cmakedefine CURL_SIZEOF_LONG ${CURL_SIZEOF_LONG}
136
137/* Integral data type used for curl_socklen_t. */
138#cmakedefine CURL_TYPEOF_CURL_SOCKLEN_T ${CURL_TYPEOF_CURL_SOCKLEN_T}
139
140/* on windows socklen_t is in here */
141#ifdef _WIN32
142#  include <winsock2.h>
143#  include <ws2tcpip.h>
144#endif
145
146#ifdef HAVE_SYS_SOCKET_H
147#  include <sys/socket.h>
148#endif
149
150/* Data type definition of curl_socklen_t. */
151typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t;
152
153/* The size of `curl_socklen_t', as computed by sizeof. */
154#cmakedefine CURL_SIZEOF_CURL_SOCKLEN_T ${CURL_SIZEOF_CURL_SOCKLEN_T}
155
156/* Signed integral data type used for curl_off_t. */
157#cmakedefine CURL_TYPEOF_CURL_OFF_T ${CURL_TYPEOF_CURL_OFF_T}
158
159/* Data type definition of curl_off_t. */
160typedef CURL_TYPEOF_CURL_OFF_T curl_off_t;
161
162/* curl_off_t formatting string directive without "%" conversion specifier. */
163#cmakedefine CURL_FORMAT_CURL_OFF_T "${CURL_FORMAT_CURL_OFF_T}"
164
165/* unsigned curl_off_t formatting string without "%" conversion specifier. */
166#cmakedefine CURL_FORMAT_CURL_OFF_TU "${CURL_FORMAT_CURL_OFF_TU}"
167
168/* curl_off_t formatting string directive with "%" conversion specifier. */
169#cmakedefine CURL_FORMAT_OFF_T "${CURL_FORMAT_OFF_T}"
170
171/* The size of `curl_off_t', as computed by sizeof. */
172#cmakedefine CURL_SIZEOF_CURL_OFF_T ${CURL_SIZEOF_CURL_OFF_T}
173
174/* curl_off_t constant suffix. */
175#cmakedefine CURL_SUFFIX_CURL_OFF_T ${CURL_SUFFIX_CURL_OFF_T}
176
177/* unsigned curl_off_t constant suffix. */
178#cmakedefine CURL_SUFFIX_CURL_OFF_TU ${CURL_SUFFIX_CURL_OFF_TU}
179
180#endif /* __CURL_CURLBUILD_H */
181