diff options
Diffstat (limited to 'ext/json/parser/parser.c')
| -rw-r--r-- | ext/json/parser/parser.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/ext/json/parser/parser.c b/ext/json/parser/parser.c index 9df04ce007..2bf3ae0eb3 100644 --- a/ext/json/parser/parser.c +++ b/ext/json/parser/parser.c @@ -296,15 +296,6 @@ static void rvalue_stack_eagerly_release(VALUE handle) } } - -#ifndef HAVE_STRNLEN -static size_t strnlen(const char *s, size_t maxlen) -{ - char *p; - return ((p = memchr(s, '\0', maxlen)) ? p - s : maxlen); -} -#endif - static int convert_UTF32_to_UTF8(char *buf, uint32_t ch) { int len = 1; |
