summaryrefslogtreecommitdiff
path: root/ext/bigdecimal/extconf.rb
diff options
context:
space:
mode:
authorKenta Murata <mrkn@mrkn.jp>2021-01-04 12:10:09 +0900
committerKenta Murata <mrkn@mrkn.jp>2021-01-04 13:29:10 +0900
commit71f0dd339b14d314d47db6c1ed9356fdb2eb4b73 (patch)
treefd2ba1a307ebb683df9a6ab23abeba9f7608d558 /ext/bigdecimal/extconf.rb
parent69ed64949b0c02d4b195809fa104ff23dd100093 (diff)
[ruby/bigdecimal] Move some definitions to missing.h
https://github.com/ruby/bigdecimal/commit/c2b22cc8b3 https://github.com/ruby/bigdecimal/commit/8cbca8481d https://github.com/ruby/bigdecimal/commit/f05aecf673
Diffstat (limited to 'ext/bigdecimal/extconf.rb')
-rw-r--r--ext/bigdecimal/extconf.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/bigdecimal/extconf.rb b/ext/bigdecimal/extconf.rb
index 4ad5172e2a..5055e10ffa 100644
--- a/ext/bigdecimal/extconf.rb
+++ b/ext/bigdecimal/extconf.rb
@@ -45,7 +45,11 @@ check_bigdecimal_version(gemspec_path)
have_builtin_func("__builtin_clz", "__builtin_clz(0)")
have_builtin_func("__builtin_clzl", "__builtin_clzl(0)")
+have_header("float.h")
+have_header("math.h")
have_header("stdbool.h")
+have_header("stdlib.h")
+
if have_func("_lzcnt_u64", "x86intrin.h") # check availability
$defs << "-DHAVE_X86INTRIN_H"
end