mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
avoid passing a char[] as snprintf first argument. implemented
* encoding.c parserInternals.c: avoid passing a char[] as snprintf first argument. * threads.c include/libxml/threads.h: implemented xmlIsThreadsEnabled() based on Andrew W. Nosenko idea. * doc/* elfgcchack.h: regenerated the API Daniel
This commit is contained in:
18
threads.c
18
threads.c
@@ -164,6 +164,24 @@ static xmlRMutexPtr xmlLibraryLock = NULL;
|
||||
static void xmlOnceInit(void);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* xmlIsThreadsEnabled:
|
||||
*
|
||||
* Run-time information about whether multithread support is compiled in
|
||||
*
|
||||
* Returns 1 (true) if library was compiled with multithread support
|
||||
* enabled or 0 (false) otherwise.
|
||||
*/
|
||||
int
|
||||
xmlIsThreadsEnabled(void)
|
||||
{
|
||||
#ifdef LIBXML_THREAD_ENABLED
|
||||
return 1;
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlNewMutex:
|
||||
*
|
||||
|
Reference in New Issue
Block a user