We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bbd45d commit 4fa6e99Copy full SHA for 4fa6e99
2 files changed
ext/json/parser/extconf.rb
@@ -6,7 +6,6 @@
6
have_func("rb_str_to_interned_str", "ruby.h") # RUBY_VERSION >= 3.0
7
have_func("rb_hash_new_capa", "ruby.h") # RUBY_VERSION >= 3.2
8
have_func("rb_hash_bulk_insert", "ruby.h") # Missing on TruffleRuby
9
-have_func("strnlen", "string.h") # Missing on Solaris 10
10
11
append_cflags("-std=c99")
12
ext/json/parser/parser.c
@@ -296,15 +296,6 @@ static void rvalue_stack_eagerly_release(VALUE handle)
296
}
297
298
299
-
300
-#ifndef HAVE_STRNLEN
301
-static size_t strnlen(const char *s, size_t maxlen)
302
-{
303
- char *p;
304
- return ((p = memchr(s, '\0', maxlen)) ? p - s : maxlen);
305
-}
306
-#endif
307
308
static int convert_UTF32_to_UTF8(char *buf, uint32_t ch)
309
{
310
int len = 1;
0 commit comments