|
Boost : |
From: John Maddock (john_at_[hidden])
Date: 2005-04-04 06:24:26
> 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)
John.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk