# define FG_NAMESPACES
# define FG_HAVE_STD
# define FG_CLASS_PARTIAL_SPECIALIZATION
+# define FG_HAVE_TRAITS
# define STL_ALGORITHM <algorithm>
# define STL_FUNCTIONAL <functional>
#include <simgear/compiler.h>
+// At least Irix needs this
+#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
+#include <char_traits.h>
+#endif
+
#ifdef FG_HAVE_STD_INCLUDES
# include <streambuf>
# include <iostream>
FG_USING_STD(ostream);
FG_USING_STD(cerr);
FG_USING_STD(endl);
+#else
+FG_USING_STD(char_traits);
#endif
#ifdef __MWERKS__
#ifndef FG_HAVE_STD_INCLUDES
typedef char_traits<char> traits_type;
typedef char_traits<char>::int_type int_type;
- typedef char_traits<char>::pos_type pos_type;
- typedef char_traits<char>::off_type off_type;
+ // typedef char_traits<char>::pos_type pos_type;
+ // typedef char_traits<char>::off_type off_type;
#endif
// logbuf( streambuf* sb ) : sbuf(sb) {}
logbuf();
#ifndef FG_HAVE_STD_INCLUDES
typedef char_traits<char> traits_type;
typedef char_traits<char>::int_type int_type;
- typedef char_traits<char>::pos_type pos_type;
- typedef char_traits<char>::off_type off_type;
+ // typedef char_traits<char>::pos_type pos_type;
+ // typedef char_traits<char>::off_type off_type;
#endif
gzfilebuf();