mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
curl tool: make setup.h first header included in tool_setup.h again
This commit is contained in:
parent
6dba7608bf
commit
e5c14674f0
@ -24,10 +24,33 @@
|
||||
|
||||
#define CURL_NO_OLDIES
|
||||
|
||||
#include <curl/curl.h> /* external interface */
|
||||
/*
|
||||
* setup.h may define preprocessor macros such as _FILE_OFFSET_BITS and
|
||||
* _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;
|
||||
* therefore we must include setup.h before curl.h when building curl.
|
||||
*/
|
||||
|
||||
#include "setup.h" /* from the lib directory */
|
||||
|
||||
/*
|
||||
* Undefine macros intended for libcurl internal use only.
|
||||
*/
|
||||
|
||||
#undef CURL_HIDDEN_SYMBOLS
|
||||
|
||||
/*
|
||||
* curl tool certainly uses libcurl's external interface.
|
||||
*/
|
||||
|
||||
#include <curl/curl.h> /* external interface */
|
||||
|
||||
/*
|
||||
* Platform specific stuff.
|
||||
*/
|
||||
|
||||
#if defined(macintosh) && defined(__MRC__)
|
||||
# define main(x,y) curl_main(x,y)
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user