Boost logo

Boost :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2005-04-04 06:47:53


John Maddock wrote:

>> The code in question is:
>>
>> # if defined(_POSIX_THREAD_SAFE_FUNCTIONS) \
>> && defined(_SC_THREAD_SAFE_FUNCTIONS) \
>> && _POSIX_THREAD_SAFE_FUNCTIONS >= 0
>> if ( ::sysconf( _SC_THREAD_SAFE_FUNCTIONS ) >= 0 )
>> { return ::readdir_r( dirp, entry, result ); }
>> # endif
>>
>> Seems like _POSIX_THREAD_SAFE_FUNCTIONS but doesn't expand to anything.
>
>
> That's a common problem with the POSIX feature test macros, the
> workaround is to use :
>
> (_POSIX_THREAD_SAFE_FUNCTIONS+0 >= 0)

Fixed and commited. Thanks for the hint.

Markus


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk