summaryrefslogtreecommitdiff
path: root/ext/digest
diff options
context:
space:
mode:
Diffstat (limited to 'ext/digest')
-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 fbc5d6c249a..894228decad 100644
--- a/ext/digest/sha2/extconf.rb
+++ b/ext/digest/sha2/extconf.rb
@@ -19,12 +19,6 @@ have_header("unistd.h")
$preload = %w[digest]
-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