summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-02-13 23:41:22 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:40:59 -0400
commit9f28189cea7ffc0126e9389d15cde05da904da83 (patch)
tree1ed664c8b457d2dbe0836974f3bcde50d3022dbc /util.h
parentb831ee1832ccc09212fbfc0fdc085effb10e7793 (diff)
downloadfork-ledger-9f28189cea7ffc0126e9389d15cde05da904da83.tar.gz
fork-ledger-9f28189cea7ffc0126e9389d15cde05da904da83.tar.bz2
fork-ledger-9f28189cea7ffc0126e9389d15cde05da904da83.zip
Added a fix for FreeBSD, so that Ledger can compile there.
Diffstat (limited to 'util.h')
-rw-r--r--util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/util.h b/util.h
index d30b6f84..21008a22 100644
--- a/util.h
+++ b/util.h
@@ -3,6 +3,11 @@
#include <iostream>
+#if defined __FreeBSD__ && __FreeBSD__ <=4
+// FreeBSD has a broken isspace macro, so dont use it
+#undef isspace(c)
+#endif
+
#if defined(__GNUG__) && __GNUG__ < 3
namespace std {
inline ostream & right (ostream & i) {