From 9f28189cea7ffc0126e9389d15cde05da904da83 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 13 Feb 2005 23:41:22 +0000 Subject: Added a fix for FreeBSD, so that Ledger can compile there. --- util.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util.h b/util.h index d30b6f84..21008a22 100644 --- a/util.h +++ b/util.h @@ -3,6 +3,11 @@ #include +#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) { -- cgit v1.2.3