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.
This commit is contained in:
Brad King 2011-11-30 09:27:18 -05:00
parent 28c46ca6cd
commit ac2e45d089
1 changed files with 5 additions and 0 deletions

View File

@ -161,6 +161,11 @@ extern int putenv (char *__string) __THROW;
#define for if(false) {} else for #define for if(false) {} else for
#endif #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 // check for the 720 compiler on the SGI
// which has some strange properties that I don't think are worth // which has some strange properties that I don't think are worth
// checking for in a general way in configure // checking for in a general way in configure