summaryrefslogtreecommitdiffstats
path: root/Source/cmStandardIncludes.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-12-31 17:47:37 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-01 11:44:11 (GMT)
commit5a8b9437c24e1548ad15ed816e0f252e912812e1 (patch)
tree8129825b0b6a10c2c949d7ca2bbf926553404a5c /Source/cmStandardIncludes.h
parentc2445d3dfd837cd2e372061f5545054317be110a (diff)
downloadCMake-5a8b9437c24e1548ad15ed816e0f252e912812e1.zip
CMake-5a8b9437c24e1548ad15ed816e0f252e912812e1.tar.gz
CMake-5a8b9437c24e1548ad15ed816e0f252e912812e1.tar.bz2
Remove GCC 2.95 support macros in favor of template versions.
GCC < 3 is no longer supported as a host compiler.
Diffstat (limited to 'Source/cmStandardIncludes.h')
-rw-r--r--Source/cmStandardIncludes.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index 6b85634..c6788d3 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -393,20 +393,6 @@ inline bool cmHasLiteralSuffixImpl(const char* str1,
return len >= N && strcmp(str1 + len - N, str2) == 0;
}
-#if defined(__GNUC__) && __GNUC__ < 3
-
-#define cmArrayBegin(a) a
-#define cmArraySize(a) (sizeof(a)/sizeof(*a))
-#define cmArrayEnd(a) a + cmArraySize(a)
-
-#define cmHasLiteralPrefix(STR1, STR2) \
- cmHasLiteralPrefixImpl(STR1, "" STR2 "", sizeof(STR2) - 1)
-
-#define cmHasLiteralSuffix(STR1, STR2) \
- cmHasLiteralSuffixImpl(STR1, "" STR2 "", sizeof(STR2) - 1)
-
-#else
-
template<typename T, size_t N>
const T* cmArrayBegin(const T (&a)[N]) { return a; }
template<typename T, size_t N>
@@ -426,8 +412,6 @@ bool cmHasLiteralSuffix(T str1, const char (&str2)[N])
return cmHasLiteralSuffixImpl(str1, str2, N - 1);
}
-#endif
-
struct cmStrCmp {
cmStrCmp(const char *test) : m_test(test) {}
cmStrCmp(const std::string &test) : m_test(test) {}