2010-02-15 03:40:18 +08:00
|
|
|
_ _ ____ _
|
|
|
|
___| | | | _ \| |
|
|
|
|
/ __| | | | |_) | |
|
|
|
|
| (__| |_| | _ <| |___
|
1999-12-29 22:20:26 +08:00
|
|
|
\___|\___/|_| \_\_____|
|
|
|
|
|
|
|
|
Include files for libcurl, external users.
|
|
|
|
|
|
|
|
They're all placed in the curl subdirectory here for better fit in any kind
|
2008-08-07 08:29:08 +08:00
|
|
|
of environment. You must include files from here using...
|
1999-12-29 22:20:26 +08:00
|
|
|
|
|
|
|
#include <curl/curl.h>
|
|
|
|
|
|
|
|
... style and point the compiler's include path to the directory holding the
|
2000-03-03 07:12:55 +08:00
|
|
|
curl subdirectory. It makes it more likely to survive future modifications.
|
2003-05-27 20:51:46 +08:00
|
|
|
|
|
|
|
NOTE FOR LIBCURL HACKERS
|
|
|
|
|
2008-08-07 08:29:08 +08:00
|
|
|
The following notes apply to libcurl version 7.19.0 and later.
|
2003-05-27 20:51:46 +08:00
|
|
|
|
2008-08-07 08:29:08 +08:00
|
|
|
* The distributed curl/curlbuild.h file is only intended to be used on systems
|
|
|
|
which can not run the also distributed configure script.
|
|
|
|
|
|
|
|
* The distributed curlbuild.h file is generated as a copy of curlbuild.h.dist
|
|
|
|
when the libcurl source code distribution archive file is originally created.
|
|
|
|
|
2010-03-24 17:45:47 +08:00
|
|
|
* If you check out from git on a non-configure platform, you must run the
|
2008-08-07 08:29:08 +08:00
|
|
|
appropriate buildconf* script to set up curlbuild.h and other local files
|
|
|
|
before being able of compiling the library.
|
|
|
|
|
|
|
|
* On systems capable of running the configure script, the configure process
|
|
|
|
will overwrite the distributed include/curl/curlbuild.h file with one that
|
|
|
|
is suitable and specific to the library being configured and built, which
|
|
|
|
is generated from the include/curl/curlbuild.h.in template file.
|
|
|
|
|
|
|
|
* If you intend to distribute an already compiled libcurl library you _MUST_
|
|
|
|
also distribute along with it the generated curl/curlbuild.h which has been
|
|
|
|
used to compile it. Otherwise the library will be of no use for the users of
|
2011-04-19 22:05:17 +08:00
|
|
|
the library that you have built. It is _your_ responsibility to provide this
|
2008-08-07 08:29:08 +08:00
|
|
|
file. No one at the cURL project can know how you have built the library.
|
|
|
|
|
2009-10-28 00:56:20 +08:00
|
|
|
* File curl/curlbuild.h includes platform and configuration dependent info,
|
2008-08-07 08:29:08 +08:00
|
|
|
and must not be modified by anyone. Configure script generates it for you.
|
2003-05-27 20:51:46 +08:00
|
|
|
|
|
|
|
* We cannot assume anything else but very basic compiler features being
|
|
|
|
present. While libcurl requires an ANSI C compiler to build, some of the
|
2003-06-06 14:44:05 +08:00
|
|
|
earlier ANSI compilers clearly can't deal with some preprocessor operators.
|
2003-05-27 20:51:46 +08:00
|
|
|
|
|
|
|
* Newlines must remain unix-style for older compilers' sake.
|
|
|
|
|
|
|
|
* Comments must be written in the old-style /* unnested C-fashion */
|
|
|
|
|
|
|
|
To figure out how to do good and portable checks for features, operating
|
|
|
|
systems or specific hardwarare, a very good resource is Bjorn Reese's
|
|
|
|
collection at http://predef.sf.net/
|