1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/digest/defs.h: Define NO_UINT64_T instead of emitting an

error to fail.

* ext/digest/sha2/extconf.rb: Do not exit on error, and utilize
  NO_UINT64_T to detect if the system has a 64bit integer type.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2001-08-14 17:04:00 +00:00
parent 5b63fc556f
commit 6a581e6317
3 changed files with 20 additions and 6 deletions

View file

@ -1,3 +1,11 @@
Wed Aug 15 01:59:19 2001 Akinori MUSHA <knu@iDaemons.org>
* ext/digest/defs.h: Define NO_UINT64_T instead of emitting an
error to fail.
* ext/digest/sha2/extconf.rb: Do not exit on error, and utilize
NO_UINT64_T to detect if the system has a 64bit integer type.
Tue Aug 14 21:14:07 2001 Akinori MUSHA <knu@iDaemons.org> Tue Aug 14 21:14:07 2001 Akinori MUSHA <knu@iDaemons.org>
* ext/digest/sha2/extconf.rb: do not create Makefile when no 64bit * ext/digest/sha2/extconf.rb: do not create Makefile when no 64bit

View file

@ -27,7 +27,7 @@
# elif defined(_MSC_VER) # elif defined(_MSC_VER)
typedef unsigned _int64 uint64_t; typedef unsigned _int64 uint64_t;
# else # else
# error What is a 64bit integer type on this system? # define NO_UINT64_T
# endif # endif
#endif #endif

View file

@ -17,12 +17,18 @@ have_header("inttypes.h")
have_header("unistd.h") have_header("unistd.h")
unless try_link(<<SRC, $defs.join(' ')) if try_run(<<SRC, $defs.join(' '))
#include "../defs.h" #include "../defs.h"
main(){} int main(void) {
#ifdef NO_UINT64_T
return 1;
#else
return 0;
#endif
}
SRC SRC
then
create_makefile("digest/sha2")
else
puts "** Cannot find a 64bit integer type - skipping the SHA2 module." puts "** Cannot find a 64bit integer type - skipping the SHA2 module."
exit 1
end end
create_makefile("digest/sha2")