summaryrefslogtreecommitdiff
path: root/ext/json/parser/extconf.rb
blob: a8e21aed4b998d4ef9d54f00a300023fc6435c77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true
require 'mkmf'

have_func("rb_enc_interned_str", "ruby.h") # RUBY_VERSION >= 3.0
have_func("rb_hash_new_capa", "ruby.h") # RUBY_VERSION >= 3.2
have_func("rb_hash_bulk_insert", "ruby.h") # Missing on TruffleRuby
have_func("rb_category_warn", "ruby.h") # Missing on TruffleRuby
have_func("strnlen", "string.h") # Missing on Solaris 10

append_cflags("-std=c99")

create_makefile 'json/ext/parser'