
"Toon Knapen" <toon.knapen@fft.be> wrote in message news:42B80444.3050609@fft.be...
... So it's clear that the current testing of _POSIX_THREAD_SAFE_FUNCTIONS, _SC_THREAD_SAFE_FUNCTIONS and _POSIX_THREAD_SAFE_FUNCTIONS does not suffice. Thus I still think it's best to expand the #if test to:
# if defined(_POSIX_THREAD_SAFE_FUNCTIONS) \ && defined(_SC_THREAD_SAFE_FUNCTIONS) \ && (_POSIX_THREAD_SAFE_FUNCTIONS+0 >= 0) \ && ( !defined(__HP_aCC) \ || ( (defined(__HP_aCC) && defined(_REENTRANT) )
to make sure that, in case we're compiling with HP-aCC, we also check that the token _REENTRANT is defined.
Toon, go ahead and commit the above if it tests OK. But do test it first; I think it needs two additional closing )'s. --Beman