diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-27 10:08:10 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:31 -0400 |
commit | d01629148383261d7944e91fd2ac67b334a6834d (patch) | |
tree | b6dc76692cc13c65e7d69405c0722c5925c7fcdf /system.hh | |
parent | 4716975cb18795e4a953fc705cf0b7c74d6a1c95 (diff) | |
download | ledger-d01629148383261d7944e91fd2ac67b334a6834d.tar.gz ledger-d01629148383261d7944e91fd2ac67b334a6834d.tar.bz2 ledger-d01629148383261d7944e91fd2ac67b334a6834d.zip |
Further corrections after attempting to compile.
Diffstat (limited to 'system.hh')
-rw-r--r-- | system.hh | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -9,8 +9,8 @@ * @brief All system headers needed by Ledger. * * These are collected here so that a pre-compiled header can be made. - * Unless configure is rerun with different options, it should never - * need to be regenerated afterwards. + * None of these header files (with the exception of acconf.h, when + * configure is re-run) are expected to change. */ #include "acconf.h" @@ -34,6 +34,19 @@ #include <string> #include <vector> +#if defined(__GNUG__) && __GNUG__ < 3 +namespace std { + inline ostream & right (ostream & i) { + i.setf(i.right, i.adjustfield); + return i; + } + inline ostream & left (ostream & i) { + i.setf(i.left, i.adjustfield); + return i; + } +} +#endif + #include <cassert> #include <cctype> #include <cstdarg> @@ -42,6 +55,11 @@ #include <cstring> #include <ctime> +#if defined __FreeBSD__ && __FreeBSD__ <= 4 +// FreeBSD has a broken isspace macro, so don't use it +#undef isspace(c) +#endif + #include <sys/stat.h> #ifdef HAVE_UNIX_PIPES |