aboutsummaryrefslogtreecommitdiffstats
path: root/ext/bigdecimal/extconf.rb
diff options
context:
space:
mode:
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