From: Matt E. <ma...@au...> - 2003-06-24 22:11:38
|
Thanks Ephraim! _REENTRANT did the trick. I think you are correct _POSIX_C_SOURCE for unix, since libxml++ compiled with the latest libxml on OSX without configuration changes. On Tuesday, June 24, 2003, at 11:58 AM, Ephraim Vider wrote: > The relevant lines from xmlversion.h are: > > /** > * LIBXML_THREAD_ENABLED: > * > * Whether the thread support is configured in > */ > #if 1 > #if defined(_REENTRANT) || (_POSIX_C_SOURCE - 0 >= 199506L) > #define LIBXML_THREAD_ENABLED > #endif > #endif > > > If the library is compiled without threads it would say #if 0 and > never > define LIBXML_THREAD_ENABLED > so: > In msvc you have to define _REENTRANT to get LIBXML_THREAD_ENABLED when > thread support is on, and it will have no effect on libxml when thread > support is off. > > On unix machines it may be that the _POSIX_C_SOURCE is automatically > defined > so there is no need to define anything else, but this is just a guess > (it is > so on my linux). |