diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index 5d7e6131a7..b9e81d7f64 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)); }