From 5d7593bf50474e87390359f53d445197005d6dd5 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 6 Apr 2005 16:15:13 -0400 Subject: [PATCH] BUG: Avoid duplicate definition by using cmsys_STL_STRING_NEQ_CHAR_DEFINED and cmsys_STL_STRING_NO_NEQ_CHAR. --- Source/cmStandardIncludes.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index 5d7e6131a..b9e81d7f6 100644 --- a/Source/cmStandardIncludes.h +++ b/Source/cmStandardIncludes.h @@ -150,8 +150,11 @@ using ::ends; using ::flush; } // The string class is missing these operators so add them +#if !defined(cmsys_STL_STRING_NEQ_CHAR_DEFINED) +# define cmsys_STL_STRING_NO_NEQ_CHAR inline bool operator!=(std::string const& a, const char* b) { return !(a==std::string(b)); } +#endif inline bool operator==(std::string const& a, const char* b) { return (a==std::string(b)); }