diff options
author | Stefan Radomski <github@mintwerk.de> | 2017-02-03 15:30:56 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2017-02-03 15:30:56 (GMT) |
commit | f7670b8d975d2d686095e98e7e7cc781b69dad0c (patch) | |
tree | 9df4dd3e721fbd26a4db14e5d3bc94cf88b8acf5 /src/uscxml/plugins/Factory.cpp | |
parent | 074e8a7db78bba7bdc184f6d18d16c2ab8045fed (diff) | |
download | uscxml-f7670b8d975d2d686095e98e7e7cc781b69dad0c.zip uscxml-f7670b8d975d2d686095e98e7e7cc781b69dad0c.tar.gz uscxml-f7670b8d975d2d686095e98e7e7cc781b69dad0c.tar.bz2 |
Reduced dependencies to compile test-gen-c to smaller executable
Diffstat (limited to 'src/uscxml/plugins/Factory.cpp')
-rw-r--r-- | src/uscxml/plugins/Factory.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/uscxml/plugins/Factory.cpp b/src/uscxml/plugins/Factory.cpp index 5b767b6..6ca599c 100644 --- a/src/uscxml/plugins/Factory.cpp +++ b/src/uscxml/plugins/Factory.cpp @@ -33,10 +33,11 @@ #include "uscxml/plugins/InvokerImpl.h" #include "uscxml/plugins/DataModelImpl.h" +#if 0 #include <xercesc/dom/DOM.hpp> #include <xercesc/util/PlatformUtils.hpp> #include "uscxml/util/DOM.h" - +#endif // see http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system @@ -538,13 +539,14 @@ size_t DataModelImpl::replaceExpressions(std::string& content) { Factory* Factory::getInstance() { - // this needs to be here as some plugins use xercesc +#if 0 + // this needs to be here as some plugins use xercesc, now in X::X in DOM.h try { ::xercesc_3_1::XMLPlatformUtils::Initialize(); } catch (const XERCESC_NS::XMLException& toCatch) { ERROR_PLATFORM_THROW("Cannot initialize XercesC: " + X(toCatch.getMessage()).str()); } - +#endif if (_instance == NULL) { _instance = new Factory(Factory::_defaultPluginPath); } |