1 /** \file sg_traits.hxx
2 * Provides a char_traits declaration for systems without it.
9 #include <simgear/compiler.h>
11 #ifndef SG_HAVE_TRAITS
13 // Dummy up some char traits for now.
14 template<class charT> struct char_traits{};
17 struct char_traits<char>
19 typedef char char_type;
21 typedef streampos pos_type;
22 typedef streamoff off_type;
24 static int_type eof() { return EOF; }
26 #endif // SG_HAVE_TRAITS
28 #endif // _SG_TRAITS_HXX