From: Ephraim V. <ef...@ep...> - 2003-06-25 08:55:00
|
FYI: libxml++ MSVC project file changed in CVS. -eff ----- Original Message ----- From: "Matt Esterly" <ma...@au...> To: <lib...@li...> Sent: Wednesday, June 25, 2003 12:11 AM Subject: Re: [libxml++] Win32 link error (v0.24.0 + msvc patch) > 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). > > |