X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fopensaml2.git;a=blobdiff_plain;f=saml%2FSAMLConfig.cpp;h=6328b84988acac61697dd98b8b9bc6884162e67e;hp=88aa180bd4bfaf29ca2b6a48ae478b601988eba5;hb=9fddf9054c76de6239295b98a559fcc75453effc;hpb=6a695b7ac9c934a1d3a6c06a04c677f589d631d9 diff --git a/saml/SAMLConfig.cpp b/saml/SAMLConfig.cpp index 88aa180..6328b84 100644 --- a/saml/SAMLConfig.cpp +++ b/saml/SAMLConfig.cpp @@ -22,6 +22,19 @@ */ #include "internal.h" + +#if defined(XMLTOOLING_LOG4SHIB) +# ifndef OPENSAML_LOG4SHIB +# error "Logging library mismatch (XMLTooling is using log4shib)." +# endif +#elif defined(XMLTOOLING_LOG4CPP) +# ifndef OPENSAML_LOG4CPP +# error "Logging library mismatch (XMLTooling is using log4cpp)." +# endif +#else +# error "No supported logging library." +#endif + #include "exceptions.h" #include "SAMLConfig.h" #include "binding/ArtifactMap.h" @@ -37,19 +50,19 @@ #include "saml2/metadata/MetadataProvider.h" #include "util/SAMLConstants.h" +#include #include #include #include -#include #include #include #include using namespace opensaml; using namespace xmlsignature; +using namespace xmltooling::logging; using namespace xmltooling; -using namespace log4cpp; using namespace std; // Expose entry points when used as an extension library