mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-30 08:38:15 +01:00
Contains an ifdef ladder which pulls in any *.cpp files needed to support the selected
parsers. Probably makes complainy noises on compilers other than VC++ - those #pragma just ain't portable
This commit is contained in:
parent
d978fe8c1b
commit
b884a0ee3d
1 changed files with 50 additions and 0 deletions
50
SAX/saxlib.cpp
Normal file
50
SAX/saxlib.cpp
Normal file
|
@ -0,0 +1,50 @@
|
|||
/*
|
||||
* SAXlib.cpp - Pulls in the appropriate bits of the library, depending
|
||||
* on the configured options.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// turn off the useless "template name is too long" warning
|
||||
#pragma warning(disable: 4786)
|
||||
#pragma comment(lib, "Utilities.lib")
|
||||
#endif
|
||||
|
||||
#define NO_DEFAULT_PARSER
|
||||
#include <SAX/XMLReader.h>
|
||||
|
||||
#ifdef USE_LIBXML2
|
||||
#pragma message("Pulling in libxml2")
|
||||
#include <SAX/wrappers/saxlibxml2.cpp>
|
||||
#ifdef _MSC_VER
|
||||
// automagically link libxml2 if using VC++
|
||||
#pragma comment(lib, "libxml2.lib")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef USE_MSXML
|
||||
#pragma message("Nothing to pull in for MSXML")
|
||||
// nothing extra to pull in for MSXML
|
||||
#endif
|
||||
|
||||
#ifdef USE_XERCES
|
||||
#pragma message("Nothing to pull in for Xerces")
|
||||
// nothing extra to pull in for Xerces
|
||||
#endif
|
||||
|
||||
#ifdef USE_GARDEN
|
||||
#pragma message("Nothing to pull in for Garden")
|
||||
// nothing extra to pull in for Garden
|
||||
#endif
|
||||
|
||||
#ifdef USE_EXPAT
|
||||
#pragma message("Pulling in Expat")
|
||||
#include <SAX/wrappers/saxexpat.cpp>
|
||||
#ifdef _MSC_VER
|
||||
// automagically link expat if using VC++
|
||||
#pragma comment(lib, "expat.lib")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// end of file
|
Loading…
Add table
Reference in a new issue