Re: [xml] [PATCH] always dllexport the singlethreaded variables
- From: Nick Wellnhofer <wellnhofer aevum de>
- To: Michael Haubenwallner <michael haubenwallner ssi-schaefer com>, xml gnome org
- Subject: Re: [xml] [PATCH] always dllexport the singlethreaded variables
- Date: Tue, 4 Sep 2018 13:08:12 +0200
On 04/09/2018 11:00, Michael Haubenwallner wrote:
Right now, LIBXML_THREAD_ENABLED is defined in xmlversion.h only if the
*application* does enable threads
OK, I thought that LIBXML_THREAD_ENABLED only depends on the configure switch,
but it also depends on the following check in xmlversion.h:
#if defined(_REENTRANT) || defined(__MT__) || \
(defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE - 0 >= 199506L))
https://gitlab.gnome.org/GNOME/libxml2/blob/master/include/libxml/xmlversion.h.in#L87
This looks wrong to me. If libxml2 was compiled with threads,
LIBXML_THREAD_ENABLED should always be defined.
Nick
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]