Planeshift

curlbuild.h

Go to the documentation of this file.
00001 /* include/curl/curlbuild.h.  Generated from curlbuild.h.in by configure.  */
00002 #ifndef __CURL_CURLBUILD_H
00003 #define __CURL_CURLBUILD_H
00004 /***************************************************************************
00005  *                                  _   _ ____  _
00006  *  Project                     ___| | | |  _ \| |
00007  *                             / __| | | | |_) | |
00008  *                            | (__| |_| |  _ <| |___
00009  *                             \___|\___/|_| \_\_____|
00010  *
00011  * Copyright (C) 1998 - 2009, Daniel Stenberg, <[email protected]>, et al.
00012  *
00013  * This software is licensed as described in the file COPYING, which
00014  * you should have received as part of this distribution. The terms
00015  * are also available at http://curl.haxx.se/docs/copyright.html.
00016  *
00017  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
00018  * copies of the Software, and permit persons to whom the Software is
00019  * furnished to do so, under the terms of the COPYING file.
00020  *
00021  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
00022  * KIND, either express or implied.
00023  *
00024  * $Id: curlbuild.h 8795 2013-09-14 06:15:05Z joelyon $
00025  ***************************************************************************/
00026 
00027 /* ================================================================ */
00028 /*               NOTES FOR CONFIGURE CAPABLE SYSTEMS                */
00029 /* ================================================================ */
00030 
00031 /*
00032  * NOTE 1:
00033  * -------
00034  *
00035  * Nothing in this file is intended to be modified or adjusted by the
00036  * curl library user nor by the curl library builder.
00037  *
00038  * If you think that something actually needs to be changed, adjusted
00039  * or fixed in this file, then, report it on the libcurl development
00040  * mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/
00041  *
00042  * This header file shall only export symbols which are 'curl' or 'CURL'
00043  * prefixed, otherwise public name space would be polluted.
00044  *
00045  * NOTE 2:
00046  * -------
00047  *
00048  * Right now you might be staring at file include/curl/curlbuild.h.in or
00049  * at file include/curl/curlbuild.h, this is due to the following reason:
00050  *
00051  * On systems capable of running the configure script, the configure process
00052  * will overwrite the distributed include/curl/curlbuild.h file with one that
00053  * is suitable and specific to the library being configured and built, which
00054  * is generated from the include/curl/curlbuild.h.in template file.
00055  *
00056  */
00057 
00058 /* ================================================================ */
00059 /*  DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE  */
00060 /* ================================================================ */
00061 
00062 #ifdef CURL_SIZEOF_LONG
00063 #  error "CURL_SIZEOF_LONG shall not be defined except in curlbuild.h"
00064    Error Compilation_aborted_CURL_SIZEOF_LONG_already_defined
00065 #endif
00066 
00067 #ifdef CURL_TYPEOF_CURL_SOCKLEN_T
00068 #  error "CURL_TYPEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h"
00069    Error Compilation_aborted_CURL_TYPEOF_CURL_SOCKLEN_T_already_defined
00070 #endif
00071 
00072 #ifdef CURL_SIZEOF_CURL_SOCKLEN_T
00073 #  error "CURL_SIZEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h"
00074    Error Compilation_aborted_CURL_SIZEOF_CURL_SOCKLEN_T_already_defined
00075 #endif
00076 
00077 #ifdef CURL_TYPEOF_CURL_OFF_T
00078 #  error "CURL_TYPEOF_CURL_OFF_T shall not be defined except in curlbuild.h"
00079    Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_already_defined
00080 #endif
00081 
00082 #ifdef CURL_FORMAT_CURL_OFF_T
00083 #  error "CURL_FORMAT_CURL_OFF_T shall not be defined except in curlbuild.h"
00084    Error Compilation_aborted_CURL_FORMAT_CURL_OFF_T_already_defined
00085 #endif
00086 
00087 #ifdef CURL_FORMAT_CURL_OFF_TU
00088 #  error "CURL_FORMAT_CURL_OFF_TU shall not be defined except in curlbuild.h"
00089    Error Compilation_aborted_CURL_FORMAT_CURL_OFF_TU_already_defined
00090 #endif
00091 
00092 #ifdef CURL_FORMAT_OFF_T
00093 #  error "CURL_FORMAT_OFF_T shall not be defined except in curlbuild.h"
00094    Error Compilation_aborted_CURL_FORMAT_OFF_T_already_defined
00095 #endif
00096 
00097 #ifdef CURL_SIZEOF_CURL_OFF_T
00098 #  error "CURL_SIZEOF_CURL_OFF_T shall not be defined except in curlbuild.h"
00099    Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_already_defined
00100 #endif
00101 
00102 #ifdef CURL_SUFFIX_CURL_OFF_T
00103 #  error "CURL_SUFFIX_CURL_OFF_T shall not be defined except in curlbuild.h"
00104    Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_already_defined
00105 #endif
00106 
00107 #ifdef CURL_SUFFIX_CURL_OFF_TU
00108 #  error "CURL_SUFFIX_CURL_OFF_TU shall not be defined except in curlbuild.h"
00109    Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_already_defined
00110 #endif
00111 
00112 /* ================================================================ */
00113 /*  EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY  */
00114 /* ================================================================ */
00115 
00116 /* Configure process defines this to 1 when it finds out that system  */
00117 /* header file ws2tcpip.h must be included by the external interface. */
00118 /* #undef CURL_PULL_WS2TCPIP_H */
00119 #ifdef CURL_PULL_WS2TCPIP_H
00120 #  ifndef WIN32_LEAN_AND_MEAN
00121 #    define WIN32_LEAN_AND_MEAN
00122 #  endif
00123 #  include <windows.h>
00124 #  include <winsock2.h>
00125 #  include <ws2tcpip.h>
00126 #endif
00127 
00128 /* Configure process defines this to 1 when it finds out that system   */
00129 /* header file sys/types.h must be included by the external interface. */
00130 #define CURL_PULL_SYS_TYPES_H 1
00131 #ifdef CURL_PULL_SYS_TYPES_H
00132 #  include <sys/types.h>
00133 #endif
00134 
00135 /* Configure process defines this to 1 when it finds out that system */
00136 /* header file stdint.h must be included by the external interface.  */
00137 /* #undef CURL_PULL_STDINT_H */
00138 #ifdef CURL_PULL_STDINT_H
00139 #  include <stdint.h>
00140 #endif
00141 
00142 /* Configure process defines this to 1 when it finds out that system  */
00143 /* header file inttypes.h must be included by the external interface. */
00144 /* #undef CURL_PULL_INTTYPES_H */
00145 #ifdef CURL_PULL_INTTYPES_H
00146 #  include <inttypes.h>
00147 #endif
00148 
00149 /* Configure process defines this to 1 when it finds out that system    */
00150 /* header file sys/socket.h must be included by the external interface. */
00151 #define CURL_PULL_SYS_SOCKET_H 1
00152 #ifdef CURL_PULL_SYS_SOCKET_H
00153 #  include <sys/socket.h>
00154 #endif
00155 
00156 /* The size of `long', as computed by sizeof. */
00157 #if defined(_M_X64) || (defined(__x86_64__) && !defined(__ILP32__))
00158 #define CURL_SIZEOF_LONG 8
00159 #else
00160 #define CURL_SIZEOF_LONG 4
00161 #endif
00162 
00163 /* Integral data type used for curl_socklen_t. */
00164 #define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
00165 
00166 /* The size of `curl_socklen_t', as computed by sizeof. */
00167 #define CURL_SIZEOF_CURL_SOCKLEN_T 4
00168 
00169 /* Data type definition of curl_socklen_t. */
00170 typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t;
00171 
00172 /* Signed integral data type used for curl_off_t. */
00173 #if defined(_M_X64) || (defined(__x86_64__) && !defined(__ILP32__))
00174 #define CURL_TYPEOF_CURL_OFF_T long
00175 #else
00176 #define CURL_TYPEOF_CURL_OFF_T int64_t
00177 #endif
00178 
00179 /* Data type definition of curl_off_t. */
00180 typedef CURL_TYPEOF_CURL_OFF_T curl_off_t;
00181 
00182 /* curl_off_t formatting string directive without "%" conversion specifier. */
00183 #define CURL_FORMAT_CURL_OFF_T "ld"
00184 
00185 /* unsigned curl_off_t formatting string without "%" conversion specifier. */
00186 #define CURL_FORMAT_CURL_OFF_TU "lu"
00187 
00188 /* curl_off_t formatting string directive with "%" conversion specifier. */
00189 #define CURL_FORMAT_OFF_T "%ld"
00190 
00191 /* The size of `curl_off_t', as computed by sizeof. */
00192 #define CURL_SIZEOF_CURL_OFF_T 8
00193 
00194 /* curl_off_t constant suffix. */
00195 #define CURL_SUFFIX_CURL_OFF_T L
00196 
00197 /* unsigned curl_off_t constant suffix. */
00198 #define CURL_SUFFIX_CURL_OFF_TU UL
00199 
00200 #endif /* __CURL_CURLBUILD_H */