diff options
author | Brad King <brad.king@kitware.com> | 2005-04-06 20:15:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-04-06 20:15:13 (GMT) |
commit | 5d7593bf50474e87390359f53d445197005d6dd5 (patch) | |
tree | ac95e3bfd453d741fbbf2b695bc14a774c5e474b /Source/cmStandardIncludes.h | |
parent | f0b10ad061fdccc71ce16a199f4c8d81bb5be216 (diff) | |
download | CMake-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.h | 3 |
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)); } |