symbols.pl: provide LIBCURL_HAS macro for apps
authorDaniel Stenberg <daniel@haxx.se>
Thu, 24 Nov 2011 21:55:09 +0000 (22:55 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 24 Nov 2011 21:56:39 +0000 (22:56 +0100)
commit4403e82f32de9b339cdacea6989e4a827a7b3a02
tree6a7499d6052d99e88f80817eff4ff8eaa851173b
parentc482e946f7ae003ce54ee05b5cca6d6ce8172f14
symbols.pl: provide LIBCURL_HAS macro for apps

Experience has shown that the symbols-in-versions file is very useful to
applications that want to build with a wide range of libcurl versions.
It is however easy to get it wrong and the source gets a bit messy with
all the fixed numerical comparisions.

The point of this script is to provide an easy-to-use macro for libcurl-
using applications to do preprocessor checks for specific libcurl
defines, and yet make the code clearly show what the macro is used for.
docs/libcurl/Makefile.am
docs/libcurl/symbols.pl [new file with mode: 0755]