On 8/2/05, Andrew W. Nosenko <andrew w nosenko gmail com> wrote:
How to detect at run-time whether libxml2 was compiled with enabled mutlithreading support (--with-threads)? Reason of question: I just try to avoid following scenario: 1. application builded and tested on the machine with thread-aware libxml2 (--with-threads). 2. user copied application (binary) to the machine where libxml2 builded with disabled threads support (--without-threads). 3. Application misterious fails :-(
Attached patch solves this issue. 2005-09-02 Andrew W. Nosenko <andrew w nosenko gmail com> * parserInternals.c: * include/libxml/xmlversion.h.in: * include/libxml/xmlwin32version.h: * include/libxml/xmlwin32version.h.in: * win32/libxml2.def.src: (xmlIsThreadsEnabled): New function. -- Andrew W. Nosenko <andrew w nosenko gmail com>
Attachment:
xmlversion.awn.threads.2.patch
Description: Text Data