1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/sha1/extconf.rb
knu 5348fd7d4a Initial revision
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-16 22:07:28 +00:00

15 lines
282 B
Ruby

require 'mkmf'
i = 0x01020304
case [i].pack('l')
when [i].pack('V')
$CFLAGS += " -DLITTLE_ENDIAN"
when [i].pack('N')
$CFLAGS += " -DBIG_ENDIAN"
else
p "Sorry, your machine has an unusual byte order which is not supported."
exit!
end
create_makefile('sha1')