From: Tilman Sauerbeck Date: Thu, 29 Mar 2007 20:05:12 +0000 (+0200) Subject: Actually define WORDS_BIGENDIAN on big endian machines. X-Git-Url: http://git.code-monkey.de/?p=ruby-eet.git;a=commitdiff_plain;h=e01339582f4b0faf2b83dfbbd3aa431c7ccce72a Actually define WORDS_BIGENDIAN on big endian machines. This unbreaks the whole thing on BE boxes. --- diff --git a/Rakefile b/Rakefile index c743d1a..178c69f 100644 --- a/Rakefile +++ b/Rakefile @@ -46,6 +46,10 @@ task :pre_ext => [:configure] do config.eet.cflags ] + if [0xff].pack("s") == "\x00\xff" + ext.env.update(:defines => "WORDS_BIGENDIAN") + end + ext.env.update(:cflags => cflags) end