Can now properly configure build to use either Expat or libxml2

This commit is contained in:
Jez Higgins 2024-09-03 15:49:31 +01:00
parent 93ab4b064d
commit c4b21e5fee
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
#ifndef ARABICA_PARSERCONFIG_H #ifndef ARABICA_PARSERCONFIG_H
#define ARABICA_PARSERCONFIG_H #define ARABICA_PARSERCONFIG_H
#ifdef USE_LIBXML2 #ifdef ARABICA_USE_LIBXML2
#include <SAX/wrappers/saxlibxml2.hpp> #include <SAX/wrappers/saxlibxml2.hpp>
#undef DEF_SAX_P #undef DEF_SAX_P
#define DEF_SAX_P libxml2_wrapper #define DEF_SAX_P libxml2_wrapper

View file

@ -13,7 +13,7 @@
#endif #endif
#endif #endif
#ifdef USE_LIBXML2 #ifdef ARABICA_USE_LIBXML2
#include "SAX/wrappers/saxlibxml2.cpp" #include "SAX/wrappers/saxlibxml2.cpp"
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma message("Pulling in libxml2 wrappers") #pragma message("Pulling in libxml2 wrappers")