[xml] xmlversion.h.in.awn.threads.1.patch



Attached patch removes extra checks for _REENTRANT, __MT__ and
_POSIX_C_SOURCE before defining LIBXML_THREAD_ENABLED macro.

Now, only one requirement for have LIBXML_THREAD_ENABLED macro defined,
is compiling the libxml2 library with multithread support enabled.

Rationale:
    1. 'gcc -pthread' doesn't define any _REENTRANT, __MT__ or
       _POSIX_C_SOURCE
    2. I may be wrong, but it seems to be dangerous to have library
       compiled with one library-wide set of defines (with
       LIBXML_THREAD_ENABLED in this case, because internal libxml2
       configure/Makefiles defines _REENTRANT macro) and
       application-user-of-library with another (without
       LIBXML_THREAD_ENABLED, because _REENTRANT macro is not defined by
       anyone).

-- 
Andrew W. Nosenko <andrew w nosenko gmail com>

Attachment: xmlversion.h.in.awn.threads.1.patch
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]