summaryrefslogtreecommitdiff
path: root/ext/digest/sha2/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/digest/sha2/extconf.rb')
-rw-r--r--ext/digest/sha2/extconf.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/ext/digest/sha2/extconf.rb b/ext/digest/sha2/extconf.rb
index c982aa64de..17fb9f2d1a 100644
--- a/ext/digest/sha2/extconf.rb
+++ b/ext/digest/sha2/extconf.rb
@@ -17,12 +17,6 @@ have_header("inttypes.h")
have_header("unistd.h")
-if try_cpp(<<SRC, $defs.join(' '))
-#include "defs.h"
-#ifdef NO_UINT64_T
- #error ** Cannot find a 64bit integer type - skipping the SHA2 module.
-#endif
-SRC
-then
+if have_type("uint64_t", "defs.h", $defs.join(' '))
create_makefile("digest/sha2")
end