mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 02:18:04 +01:00
Add include guards for XMLConfiguration and JSONConfiguration in Poco::Util. This will prevent accidental linking of the XML and JSON libraries when enabled.
This commit is contained in:
@@ -34,6 +34,11 @@
|
||||
//
|
||||
|
||||
|
||||
// Avoid accidental linking of XML library when XMLConfiguration
|
||||
// is not desired.
|
||||
#ifndef POCO_UTIL_NO_XMLCONFIGURATION
|
||||
|
||||
|
||||
#include "Poco/Util/XMLConfiguration.h"
|
||||
#include "Poco/SAX/InputSource.h"
|
||||
#include "Poco/DOM/DOMParser.h"
|
||||
@@ -484,3 +489,5 @@ Poco::XML::Node* XMLConfiguration::findAttribute(const std::string& name, Poco::
|
||||
|
||||
|
||||
} } // namespace Poco::Util
|
||||
|
||||
#endif // POCO_UTIL_NO_XMLCONFIGURATION
|
||||
|
||||
Reference in New Issue
Block a user