summaryrefslogtreecommitdiff
path: root/system.hh
diff options
context:
space:
mode:
Diffstat (limited to 'system.hh')
-rw-r--r--system.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/system.hh b/system.hh
index 1621ac85..388cf53d 100644
--- a/system.hh
+++ b/system.hh
@@ -68,6 +68,7 @@
#include <vector>
#if defined(__GNUG__) && __GNUG__ < 3
+
namespace std {
inline ostream & right (ostream & i) {
i.setf(i.right, i.adjustfield);
@@ -78,6 +79,15 @@ namespace std {
return i;
}
}
+
+typedef unsigned long istream_pos_type;
+typedef unsigned long ostream_pos_type;
+
+#else // ! (defined(__GNUG__) && __GNUG__ < 3)
+
+typedef std::istream::pos_type istream_pos_type;
+typedef std::ostream::pos_type ostream_pos_type;
+
#endif
#include <cassert>