summaryrefslogtreecommitdiffstats
path: root/Source/cmStandardIncludes.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-04-06 20:15:13 (GMT)
committerBrad King <brad.king@kitware.com>2005-04-06 20:15:13 (GMT)
commit5d7593bf50474e87390359f53d445197005d6dd5 (patch)
treeac95e3bfd453d741fbbf2b695bc14a774c5e474b /Source/cmStandardIncludes.h
parentf0b10ad061fdccc71ce16a199f4c8d81bb5be216 (diff)
downloadCMake-5d7593bf50474e87390359f53d445197005d6dd5.zip
CMake-5d7593bf50474e87390359f53d445197005d6dd5.tar.gz
CMake-5d7593bf50474e87390359f53d445197005d6dd5.tar.bz2
BUG: Avoid duplicate definition by using cmsys_STL_STRING_NEQ_CHAR_DEFINED and cmsys_STL_STRING_NO_NEQ_CHAR.
Diffstat (limited to 'Source/cmStandardIncludes.h')
-rw-r--r--Source/cmStandardIncludes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index 5d7e613..b9e81d7 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)); }