2012-04-06 17:35:15 -04:00
|
|
|
#ifndef HEADER_CURL_TOOL_SETUP_H
|
|
|
|
#define HEADER_CURL_TOOL_SETUP_H
|
|
|
|
/***************************************************************************
|
|
|
|
* _ _ ____ _
|
|
|
|
* Project ___| | | | _ \| |
|
|
|
|
* / __| | | | |_) | |
|
|
|
|
* | (__| |_| | _ <| |___
|
|
|
|
* \___|\___/|_| \_\_____|
|
|
|
|
*
|
2019-11-02 18:41:43 -04:00
|
|
|
* Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
|
2012-04-06 17:35:15 -04:00
|
|
|
*
|
|
|
|
* This software is licensed as described in the file COPYING, which
|
|
|
|
* you should have received as part of this distribution. The terms
|
2016-02-02 18:19:02 -05:00
|
|
|
* are also available at https://curl.haxx.se/docs/copyright.html.
|
2012-04-06 17:35:15 -04:00
|
|
|
*
|
|
|
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
* copies of the Software, and permit persons to whom the Software is
|
|
|
|
* furnished to do so, under the terms of the COPYING file.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#define CURL_NO_OLDIES
|
|
|
|
|
2012-04-09 21:20:30 -04:00
|
|
|
/*
|
2013-02-04 16:56:44 -05:00
|
|
|
* curl_setup.h may define preprocessor macros such as _FILE_OFFSET_BITS and
|
2012-04-09 21:20:30 -04:00
|
|
|
* _LARGE_FILES in order to support files larger than 2 GB. On platforms
|
|
|
|
* where this happens it is mandatory that these macros are defined before
|
|
|
|
* any system header file is included, otherwise file handling function
|
|
|
|
* prototypes will be misdeclared and curl tool may not build properly;
|
2013-02-04 16:56:44 -05:00
|
|
|
* therefore we must include curl_setup.h before curl.h when building curl.
|
2012-04-09 21:20:30 -04:00
|
|
|
*/
|
2012-04-08 07:50:18 -04:00
|
|
|
|
2013-01-06 13:06:49 -05:00
|
|
|
#include "curl_setup.h" /* from the lib directory */
|
2012-04-06 17:35:15 -04:00
|
|
|
|
2012-04-09 21:20:30 -04:00
|
|
|
/*
|
|
|
|
* curl tool certainly uses libcurl's external interface.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <curl/curl.h> /* external interface */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Platform specific stuff.
|
|
|
|
*/
|
|
|
|
|
2012-04-06 17:35:15 -04:00
|
|
|
#if defined(macintosh) && defined(__MRC__)
|
|
|
|
# define main(x,y) curl_main(x,y)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef TPF
|
|
|
|
# undef select
|
|
|
|
/* change which select is used for the curl command line tool */
|
|
|
|
# define select(a,b,c,d,e) tpf_select_bsd(a,b,c,d,e)
|
|
|
|
/* and turn off the progress meter */
|
|
|
|
# define CONF_DEFAULT (0|CONF_NOPROGRESS)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef OS
|
|
|
|
# define OS "unknown"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef UNPRINTABLE_CHAR
|
|
|
|
/* define what to use for unprintable characters */
|
|
|
|
# define UNPRINTABLE_CHAR '.'
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAVE_STRDUP
|
2014-10-17 06:59:32 -04:00
|
|
|
# include "tool_strdup.h"
|
2012-04-06 17:35:15 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* HEADER_CURL_TOOL_SETUP_H */
|