summaryrefslogtreecommitdiff
path: root/system.hh
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-05-08 02:19:44 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-05-08 02:50:19 -0400
commitd159501993cfd0215f94f0e5e16796558417b681 (patch)
treeb0e2b9e9e707dd3f71683e81b9c9c3a1f8b47f86 /system.hh
parent7ecbf3e125481a02c541f9eb3ed795ac3e245541 (diff)
downloadledger-d159501993cfd0215f94f0e5e16796558417b681.tar.gz
ledger-d159501993cfd0215f94f0e5e16796558417b681.tar.bz2
ledger-d159501993cfd0215f94f0e5e16796558417b681.zip
The code is compiling again, but it's far from being able to run yet.
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>