mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
5348fd7d4a
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
15 lines
282 B
Ruby
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')
|