use correct define -> HAVE_LIBXML2
This commit is contained in:
parent
56712c2435
commit
9f4db6c855
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
#ifndef TEST_MEMORY_CLEANUP
|
#ifndef TEST_MEMORY_CLEANUP
|
||||||
#define TEST_MEMORY_CLEANUP
|
#define TEST_MEMORY_CLEANUP
|
||||||
|
|
||||||
#if defined(HAS_XML2)
|
#if defined(HAVE_LIBXML2)
|
||||||
#include <libxml/parser.h>
|
#include <libxml/parser.h>
|
||||||
#include <libxml/entities.h>
|
#include <libxml/entities.h>
|
||||||
#include <libxml/globals.h>
|
#include <libxml/globals.h>
|
||||||
|
@ -23,7 +23,7 @@ inline void run_cleanup()
|
||||||
// only call this once, on exit
|
// only call this once, on exit
|
||||||
// to make sure valgrind output is clean
|
// to make sure valgrind output is clean
|
||||||
// http://xmlsoft.org/xmlmem.html
|
// http://xmlsoft.org/xmlmem.html
|
||||||
#if defined(HAS_XML2)
|
#if defined(HAVE_LIBXML2)
|
||||||
xmlCleanupCharEncodingHandlers();
|
xmlCleanupCharEncodingHandlers();
|
||||||
xmlCleanupEncodingAliases();
|
xmlCleanupEncodingAliases();
|
||||||
xmlCleanupGlobals();
|
xmlCleanupGlobals();
|
||||||
|
|
Loading…
Reference in a new issue