cURL / Mailing Lists / curl-library / Single Mail


RE: curl.h and CURL_EXTERN

From: Patrick Monnerat <>
Date: Fri, 15 Feb 2013 20:06:08 +0100

Yang Tse wrote:
> curl.h at line 80 and surrounding has a preprocessor block which takes
care of defining CURL_EXTERN symbol depending on wether other symbols
are defined or not.

I do not really understand the problem, since I do not deal with
platforms needing a non-null value for that symbol.

However, I do use the symbol itself to determine which entry points
should be exported from the "dll" on the OS400:

------- packages/OS400/
# Gather the list of symbols to export.

         sed -e 's/^.*CURL_EXTERN[ ]\(.*\)(.*$/\1/'
             -e 's/[ ]*$//'
             -e 's/^.*[ ][ ]*//'
             -e 's/^\*//'
             -e 's/(\(.*\))/\1/'`

As a consequence, I don't care about the CURL_EXTERN definition, but I
do care about its use. Thus... Don't remove or replace it in the
declarations. Thanks.


List admin:
Received on 2013-02-15