cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: _REENTRANT, _ALL_SOURCE, _THREAD_SAFE, _LARGE_FILES, etc

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 11 Jul 2008 00:01:13 +0200 (CEST)

On Thu, 10 Jul 2008, Yang Tse wrote:

> This implies that macros such as the ones in the subject line which modify
> compilation and linking characteristics should be defined before any header
> file is included, at least when the library is being built.
>
> So the question I have or confirmation that I need before going any further
> actually has to do with the placement of macros such as the ones in the
> subject line. I suppose that we do not want these macros defined and
> exported in the public interface and that we do really want them defined and
> used, if appropriate, when building the library.

Exactly. They should be used as appropriate when we built libcurl, but nothing
in our external headers should (preferably) define them or depend on them
being set to anything particular.

-- 
  / daniel.haxx.se
Received on 2008-07-11