blob: 0a293e124875a27b50e92646ff5d9df3c6db3b01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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')
|