xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | #ifndef HEADER_CURL_TOOL_SETUP_H |
| 2 | #define HEADER_CURL_TOOL_SETUP_H |
| 3 | /*************************************************************************** |
| 4 | * _ _ ____ _ |
| 5 | * Project ___| | | | _ \| | |
| 6 | * / __| | | | |_) | | |
| 7 | * | (__| |_| | _ <| |___ |
| 8 | * \___|\___/|_| \_\_____| |
| 9 | * |
| 10 | * Copyright (C) 1998 - 2022, 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 https://curl.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 | * SPDX-License-Identifier: curl |
| 24 | * |
| 25 | ***************************************************************************/ |
| 26 | |
| 27 | #define CURL_NO_OLDIES |
| 28 | |
| 29 | /* |
| 30 | * curl_setup.h may define preprocessor macros such as _FILE_OFFSET_BITS and |
| 31 | * _LARGE_FILES in order to support files larger than 2 GB. On platforms |
| 32 | * where this happens it is mandatory that these macros are defined before |
| 33 | * any system header file is included, otherwise file handling function |
| 34 | * prototypes will be misdeclared and curl tool may not build properly; |
| 35 | * therefore we must include curl_setup.h before curl.h when building curl. |
| 36 | */ |
| 37 | |
| 38 | #include "curl_setup.h" /* from the lib directory */ |
| 39 | |
| 40 | /* |
| 41 | * curl tool certainly uses libcurl's external interface. |
| 42 | */ |
| 43 | |
| 44 | #include <curl/curl.h> /* external interface */ |
| 45 | |
| 46 | /* |
| 47 | * Platform specific stuff. |
| 48 | */ |
| 49 | |
| 50 | #if defined(macintosh) && defined(__MRC__) |
| 51 | # define main(x,y) curl_main(x,y) |
| 52 | #endif |
| 53 | |
| 54 | #ifndef OS |
| 55 | # define OS "unknown" |
| 56 | #endif |
| 57 | |
| 58 | #ifndef UNPRINTABLE_CHAR |
| 59 | /* define what to use for unprintable characters */ |
| 60 | # define UNPRINTABLE_CHAR '.' |
| 61 | #endif |
| 62 | |
| 63 | #ifndef HAVE_STRDUP |
| 64 | # include "tool_strdup.h" |
| 65 | #endif |
| 66 | |
| 67 | #endif /* HEADER_CURL_TOOL_SETUP_H */ |