summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2015-05-08 11:07:27 +1000
committerDarren Tucker <dtucker@zip.com.au>2015-05-08 11:07:27 +1000
commita647b9b8e616c231594b2710c925d31b1b8afea3 (patch)
treefb30a90e91b8d7bf04e338cb2f7cbd6027046db5
parentd1680d36e17244d9af3843aeb5025cb8e40d6c07 (diff)
Put brackets around mblen() compat constant.
This might help with the reported problem cross compiling for Android ("error: expected identifier or '(' before numeric constant") but shouldn't hurt in any case.
-rw-r--r--openbsd-compat/openbsd-compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h
index 1cffefe0..cb59ccd5 100644
--- a/openbsd-compat/openbsd-compat.h
+++ b/openbsd-compat/openbsd-compat.h
@@ -221,7 +221,7 @@ long long strtonum(const char *, long long, long long, const char **);
/* multibyte character support */
#ifndef HAVE_MBLEN
-# define mblen(x, y) 1
+# define mblen(x, y) (1)
#endif
#if !defined(HAVE_VASPRINTF) || !defined(HAVE_VSNPRINTF)