]> git.mxchange.org Git - simgear.git/blob - simgear/fg_traits.hxx
Updates to remove unneeded dependencies on FlightGear and SimGear.
[simgear.git] / simgear / fg_traits.hxx
1 #ifndef _FG_TRAITS_HXX
2 #define _FG_TRAITS_HXX
3
4 #include <simgear/compiler.h>
5
6 #ifndef FG_HAVE_TRAITS
7
8 // Dummy up some char traits for now.
9 template<class charT> struct char_traits{};
10
11 FG_TEMPLATE_NULL
12 struct char_traits<char>
13 {
14     typedef char      char_type;
15     typedef int       int_type;
16     typedef streampos pos_type;
17     typedef streamoff off_type;
18
19     static int_type eof() { return EOF; }
20 };
21 #endif // FG_HAVE_TRAITS
22
23 #endif // _FG_TRAITS_HXX