From ac2e45d0893dd283c04c600e626bf80ea57d4a71 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 30 Nov 2011 09:27:18 -0500 Subject: 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. --- Source/cmStandardIncludes.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index e8decbb967..ea299ca903 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 -- cgit v1.2.1