michael@0: /* include/curl/curlbuild.h. Generated from curlbuild.h.in by configure. */ michael@0: #ifndef __CURL_CURLBUILD_H michael@0: #define __CURL_CURLBUILD_H michael@0: /*************************************************************************** michael@0: * _ _ ____ _ michael@0: * Project ___| | | | _ \| | michael@0: * / __| | | | |_) | | michael@0: * | (__| |_| | _ <| |___ michael@0: * \___|\___/|_| \_\_____| michael@0: * michael@0: * Copyright (C) 1998 - 2009, Daniel Stenberg, , et al. michael@0: * michael@0: * This software is licensed as described in the file COPYING, which michael@0: * you should have received as part of this distribution. The terms michael@0: * are also available at http://curl.haxx.se/docs/copyright.html. michael@0: * michael@0: * You may opt to use, copy, modify, merge, publish, distribute and/or sell michael@0: * copies of the Software, and permit persons to whom the Software is michael@0: * furnished to do so, under the terms of the COPYING file. michael@0: * michael@0: * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY michael@0: * KIND, either express or implied. michael@0: * michael@0: * $Id: curlbuild.h.in,v 1.8 2009-04-29 15:15:38 yangtse Exp $ michael@0: ***************************************************************************/ michael@0: michael@0: /* ================================================================ */ michael@0: /* NOTES FOR CONFIGURE CAPABLE SYSTEMS */ michael@0: /* ================================================================ */ michael@0: michael@0: /* michael@0: * NOTE 1: michael@0: * ------- michael@0: * michael@0: * Nothing in this file is intended to be modified or adjusted by the michael@0: * curl library user nor by the curl library builder. michael@0: * michael@0: * If you think that something actually needs to be changed, adjusted michael@0: * or fixed in this file, then, report it on the libcurl development michael@0: * mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/ michael@0: * michael@0: * This header file shall only export symbols which are 'curl' or 'CURL' michael@0: * prefixed, otherwise public name space would be polluted. michael@0: * michael@0: * NOTE 2: michael@0: * ------- michael@0: * michael@0: * Right now you might be staring at file include/curl/curlbuild.h.in or michael@0: * at file include/curl/curlbuild.h, this is due to the following reason: michael@0: * michael@0: * On systems capable of running the configure script, the configure process michael@0: * will overwrite the distributed include/curl/curlbuild.h file with one that michael@0: * is suitable and specific to the library being configured and built, which michael@0: * is generated from the include/curl/curlbuild.h.in template file. michael@0: * michael@0: */ michael@0: michael@0: /* ================================================================ */ michael@0: /* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ michael@0: /* ================================================================ */ michael@0: michael@0: #ifdef CURL_SIZEOF_LONG michael@0: # error "CURL_SIZEOF_LONG shall not be defined except in curlbuild.h" michael@0: Error Compilation_aborted_CURL_SIZEOF_LONG_already_defined michael@0: #endif michael@0: michael@0: #ifdef CURL_TYPEOF_CURL_SOCKLEN_T michael@0: # error "CURL_TYPEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h" michael@0: Error Compilation_aborted_CURL_TYPEOF_CURL_SOCKLEN_T_already_defined michael@0: #endif michael@0: michael@0: #ifdef CURL_SIZEOF_CURL_SOCKLEN_T michael@0: # error "CURL_SIZEOF_CURL_SOCKLEN_T shall not be defined except in curlbuild.h" michael@0: Error Compilation_aborted_CURL_SIZEOF_CURL_SOCKLEN_T_already_defined michael@0: #endif michael@0: michael@0: #ifdef CURL_TYPEOF_CURL_OFF_T michael@0: # error "CURL_TYPEOF_CURL_OFF_T shall not be defined except in curlbuild.h" michael@0: Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_already_defined michael@0: #endif michael@0: michael@0: #ifdef CURL_FORMAT_CURL_OFF_T michael@0: # error "CURL_FORMAT_CURL_OFF_T shall not be defined except in curlbuild.h" michael@0: Error Compilation_aborted_CURL_FORMAT_CURL_OFF_T_already_defined michael@0: #endif michael@0: michael@0: #ifdef CURL_FORMAT_CURL_OFF_TU michael@0: # error "CURL_FORMAT_CURL_OFF_TU shall not be defined except in curlbuild.h" michael@0: Error Compilation_aborted_CURL_FORMAT_CURL_OFF_TU_already_defined michael@0: #endif michael@0: michael@0: #ifdef CURL_FORMAT_OFF_T michael@0: # error "CURL_FORMAT_OFF_T shall not be defined except in curlbuild.h" michael@0: Error Compilation_aborted_CURL_FORMAT_OFF_T_already_defined michael@0: #endif michael@0: michael@0: #ifdef CURL_SIZEOF_CURL_OFF_T michael@0: # error "CURL_SIZEOF_CURL_OFF_T shall not be defined except in curlbuild.h" michael@0: Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_already_defined michael@0: #endif michael@0: michael@0: #ifdef CURL_SUFFIX_CURL_OFF_T michael@0: # error "CURL_SUFFIX_CURL_OFF_T shall not be defined except in curlbuild.h" michael@0: Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_already_defined michael@0: #endif michael@0: michael@0: #ifdef CURL_SUFFIX_CURL_OFF_TU michael@0: # error "CURL_SUFFIX_CURL_OFF_TU shall not be defined except in curlbuild.h" michael@0: Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_already_defined michael@0: #endif michael@0: michael@0: /* ================================================================ */ michael@0: /* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */ michael@0: /* ================================================================ */ michael@0: michael@0: /* Configure process defines this to 1 when it finds out that system */ michael@0: /* header file ws2tcpip.h must be included by the external interface. */ michael@0: /* #undef CURL_PULL_WS2TCPIP_H */ michael@0: #ifdef CURL_PULL_WS2TCPIP_H michael@0: # ifndef WIN32_LEAN_AND_MEAN michael@0: # define WIN32_LEAN_AND_MEAN michael@0: # endif michael@0: # include michael@0: # include michael@0: # include michael@0: #endif michael@0: michael@0: /* Configure process defines this to 1 when it finds out that system */ michael@0: /* header file sys/types.h must be included by the external interface. */ michael@0: #define CURL_PULL_SYS_TYPES_H 1 michael@0: #ifdef CURL_PULL_SYS_TYPES_H michael@0: # include michael@0: #endif michael@0: michael@0: /* Configure process defines this to 1 when it finds out that system */ michael@0: /* header file stdint.h must be included by the external interface. */ michael@0: /* #undef CURL_PULL_STDINT_H */ michael@0: #ifdef CURL_PULL_STDINT_H michael@0: # include michael@0: #endif michael@0: michael@0: /* Configure process defines this to 1 when it finds out that system */ michael@0: /* header file inttypes.h must be included by the external interface. */ michael@0: /* #undef CURL_PULL_INTTYPES_H */ michael@0: #ifdef CURL_PULL_INTTYPES_H michael@0: # include michael@0: #endif michael@0: michael@0: /* Configure process defines this to 1 when it finds out that system */ michael@0: /* header file sys/socket.h must be included by the external interface. */ michael@0: #define CURL_PULL_SYS_SOCKET_H 1 michael@0: #ifdef CURL_PULL_SYS_SOCKET_H michael@0: # include michael@0: #endif michael@0: michael@0: /* The size of `long', as computed by sizeof. */ michael@0: #if defined(_M_X64) || (defined(__x86_64__) && !defined(__ILP32__)) michael@0: #define CURL_SIZEOF_LONG 8 michael@0: #else michael@0: #define CURL_SIZEOF_LONG 4 michael@0: #endif michael@0: michael@0: /* Integral data type used for curl_socklen_t. */ michael@0: #define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t michael@0: michael@0: /* The size of `curl_socklen_t', as computed by sizeof. */ michael@0: #define CURL_SIZEOF_CURL_SOCKLEN_T 4 michael@0: michael@0: /* Data type definition of curl_socklen_t. */ michael@0: typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t; michael@0: michael@0: /* Signed integral data type used for curl_off_t. */ michael@0: #if defined(_M_X64) || (defined(__x86_64__) && !defined(__ILP32__)) michael@0: #define CURL_TYPEOF_CURL_OFF_T long michael@0: #else michael@0: #define CURL_TYPEOF_CURL_OFF_T int64_t michael@0: #endif michael@0: michael@0: /* Data type definition of curl_off_t. */ michael@0: typedef CURL_TYPEOF_CURL_OFF_T curl_off_t; michael@0: michael@0: /* curl_off_t formatting string directive without "%" conversion specifier. */ michael@0: #define CURL_FORMAT_CURL_OFF_T "ld" michael@0: michael@0: /* unsigned curl_off_t formatting string without "%" conversion specifier. */ michael@0: #define CURL_FORMAT_CURL_OFF_TU "lu" michael@0: michael@0: /* curl_off_t formatting string directive with "%" conversion specifier. */ michael@0: #define CURL_FORMAT_OFF_T "%ld" michael@0: michael@0: /* The size of `curl_off_t', as computed by sizeof. */ michael@0: #define CURL_SIZEOF_CURL_OFF_T 8 michael@0: michael@0: /* curl_off_t constant suffix. */ michael@0: #define CURL_SUFFIX_CURL_OFF_T L michael@0: michael@0: /* unsigned curl_off_t constant suffix. */ michael@0: #define CURL_SUFFIX_CURL_OFF_TU UL michael@0: michael@0: #endif /* __CURL_CURLBUILD_H */