json
Advanced tools
+4
-0
@@ -5,2 +5,6 @@ # Changes | ||
| ### 2026-07-13 (2.21.1) | ||
| * Fix a compilation issue on Window and Microsoft Visual C++. | ||
| ### 2026-07-12 (2.21.0) | ||
@@ -7,0 +11,0 @@ |
@@ -18,18 +18,2 @@ # frozen_string_literal: true | ||
| def have_builtin_func(name, check_expr, opt = "", &b) | ||
| checking_for checking_message(name.funcall_style, nil, opt) do | ||
| if try_compile(<<SRC, opt, &b) | ||
| int foo; | ||
| int main() { #{check_expr}; return 0; } | ||
| SRC | ||
| $defs.push(format("-DHAVE_BUILTIN_%s", name.tr_cpp)) | ||
| true | ||
| else | ||
| false | ||
| end | ||
| end | ||
| end | ||
| have_builtin_func("__builtin_clzll", "__builtin_clzll(0)") | ||
| if have_header("x86intrin.h") | ||
@@ -36,0 +20,0 @@ have_func("_lzcnt_u64", "x86intrin.h") |
| # frozen_string_literal: true | ||
| module JSON | ||
| VERSION = '2.21.0' | ||
| VERSION = '2.21.1' | ||
| end |