summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-01-08 19:57:45 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-01-08 19:57:45 (GMT)
commit3fb174dd0b1e6bfb34c6ab82d9b22becd4181be4 (patch)
tree72868de59e1166c40c013e3b0072eab00c5d9cdc /Source
parentdcd2e38b992eb327f5387fa9a7a9195c70b24593 (diff)
parentf07d96ccf4c0b09b544efadaac47cd79f9298b89 (diff)
downloadCMake-3fb174dd0b1e6bfb34c6ab82d9b22becd4181be4.zip
CMake-3fb174dd0b1e6bfb34c6ab82d9b22becd4181be4.tar.gz
CMake-3fb174dd0b1e6bfb34c6ab82d9b22becd4181be4.tar.bz2
Merge topic 'drop-GNU-2.95'
f07d96cc Remove workaround for GCC < 3 ios_base absence. 5a8b9437 Remove GCC 2.95 support macros in favor of template versions.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmStandardIncludes.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index 6b85634..e4f5760 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -146,11 +146,6 @@ extern int putenv (char *__string) __THROW;
#define for if(false) {} else for
#endif
-// Provide std::ios_base on ancient GCC 2.9x
-#if defined(__GNUC__) && __GNUC__ < 3
-namespace std { typedef ios ios_base; }
-#endif
-
// check for the 720 compiler on the SGI
// which has some strange properties that I don't think are worth
// checking for in a general way in configure
@@ -393,20 +388,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 +407,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) {}