diff options
author | Brad King <brad.king@kitware.com> | 2011-11-30 14:27:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-11-30 14:27:18 (GMT) |
commit | ac2e45d0893dd283c04c600e626bf80ea57d4a71 (patch) | |
tree | 6676611a1d75a7b6bf530420518ba4e0a1faec4d | |
parent | 28c46ca6cd6ffd344e83c79108bc5b54eb7d7428 (diff) | |
download | CMake-ac2e45d0893dd283c04c600e626bf80ea57d4a71.zip CMake-ac2e45d0893dd283c04c600e626bf80ea57d4a71.tar.gz CMake-ac2e45d0893dd283c04c600e626bf80ea57d4a71.tar.bz2 |
Provide std::ios_base typedef on GCC < 3
The ancient GNU standard library provided std::ios but not
std::ios_base. Define the latter in terms of the former.
-rw-r--r-- | Source/cmStandardIncludes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index e8decbb..ea299ca 100644 --- a/Source/cmStandardIncludes.h +++ b/Source/cmStandardIncludes.h @@ -161,6 +161,11 @@ 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 |