From e01339582f4b0faf2b83dfbbd3aa431c7ccce72a Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Thu, 29 Mar 2007 22:05:12 +0200 Subject: [PATCH] Actually define WORDS_BIGENDIAN on big endian machines. This unbreaks the whole thing on BE boxes. --- Rakefile | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.30.2