|
Boost : |
From: Beman Dawes (bdawes_at_[hidden])
Date: 2005-06-20 16:48:14
"Toon Knapen" <toon.knapen_at_[hidden]> wrote in message
news:42B70E25.9080307_at_fft.be...
> Caleb Epstein wrote:
>
>> Well, there is code in
>> libs/filesystem/src/operations_posix_windows.cpp that attempts to
>> detect if it is being compiled with multi-threading enabled:
>>
>> # if defined(_POSIX_THREAD_SAFE_FUNCTIONS) \
>> && defined(_SC_THREAD_SAFE_FUNCTIONS) \
>> && (_POSIX_THREAD_SAFE_FUNCTIONS+0 >= 0)
>>
>> Presumably aCC sets these macros incorrectly, or this code is not
>> correct. Maybe the check should be for >0?
>
>
> Since somebody suggested that _REENTRANT is defined on HP when the '-mt'
> flag is used, what about only adding adding following to this #if
>
> # if defined(_POSIX_THREAD_SAFE_FUNCTIONS) \
> && defined(_SC_THREAD_SAFE_FUNCTIONS) \
> && (_POSIX_THREAD_SAFE_FUNCTIONS+0 >= 0)
> || (defined(__HP_aCC) && defined(_REENTRANT))
If someone with access to HPUX verifies this helps, I'll be happy to add it.
(But do fix the missing backslash on line 3)
--Beman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk