diff options
author | Darren Tucker <dtucker@zip.com.au> | 2015-05-08 11:07:27 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2015-05-08 11:07:27 +1000 |
commit | a647b9b8e616c231594b2710c925d31b1b8afea3 (patch) | |
tree | fb30a90e91b8d7bf04e338cb2f7cbd6027046db5 | |
parent | d1680d36e17244d9af3843aeb5025cb8e40d6c07 (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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index 1cffefe06..cb59ccd57 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 **); | |||
221 | 221 | ||
222 | /* multibyte character support */ | 222 | /* multibyte character support */ |
223 | #ifndef HAVE_MBLEN | 223 | #ifndef HAVE_MBLEN |
224 | # define mblen(x, y) 1 | 224 | # define mblen(x, y) (1) |
225 | #endif | 225 | #endif |
226 | 226 | ||
227 | #if !defined(HAVE_VASPRINTF) || !defined(HAVE_VSNPRINTF) | 227 | #if !defined(HAVE_VASPRINTF) || !defined(HAVE_VSNPRINTF) |