summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2011-04-23 21:54:20 +0000
committer R. Belmont <rb6502@users.noreply.github.com>2011-04-23 21:54:20 +0000
commit45d9031cc8f97a97d043a18c9db30a3b5260e3b6 (patch)
tree062113cea88191a3ab7d68bc6f6e5405137f7bcd
parent429964cfbb44c3429c8e7ad1372fbff3a1c3504e (diff)
astring: Fix build on NetBSD and other systems where toupper() is a macro [Thomas Klausner]
-rw-r--r--src/lib/util/astring.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/util/astring.h b/src/lib/util/astring.h
index 6c9deb1128a..54b437c6186 100644
--- a/src/lib/util/astring.h
+++ b/src/lib/util/astring.h
@@ -43,8 +43,15 @@
#define __ASTRING_H__
#include <stdarg.h>
+#include <ctype.h>
#include "osdcomm.h"
+#ifdef toupper
+#undef toupper
+#endif
+#ifdef tolower
+#undef tolower
+#endif
/***************************************************************************
TYPE DEFINITIONS