From 279c4fe8972b4fd74e41a9902c96e8083c3f48a1 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Mon, 30 Apr 2012 14:08:17 +0000 Subject: [PATCH] Missing min macro --- shibsp/handler/impl/ExternalAuthHandler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shibsp/handler/impl/ExternalAuthHandler.cpp b/shibsp/handler/impl/ExternalAuthHandler.cpp index 5c12068..3e254fa 100644 --- a/shibsp/handler/impl/ExternalAuthHandler.cpp +++ b/shibsp/handler/impl/ExternalAuthHandler.cpp @@ -61,6 +61,9 @@ using namespace opensaml; using saml2::NameID; using saml2::AuthnStatement; using saml2::AuthnContext; +# ifndef min +# define min(a,b) (((a) < (b)) ? (a) : (b)) +# endif #endif using namespace shibspconstants; @@ -528,7 +531,6 @@ pair ExternalAuth::processMessage( static const XMLCh _SessionID[] = UNICODE_LITERAL_9(S,e,s,s,i,o,n,I,D); static const XMLCh _RelayState[] = UNICODE_LITERAL_10(R,e,l,a,y,S,t,a,t,e); static const XMLCh _Cookie[] = UNICODE_LITERAL_6(C,o,o,k,i,e); - static const XMLCh _name[] = UNICODE_LITERAL_4(n,a,m,e); DOMDocument* retdoc = XMLToolingConfig::getConfig().getParser().newDocument(); XercesJanitor retjanitor(retdoc); retdoc->appendChild(retdoc->createElement(_ExternalAuth)); -- 2.1.4