From ae52321fe7ec273744010f92bef8d30e21476341 Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Wed, 22 Jun 2005 15:33:22 +0000 Subject: [PATCH] HOST_FLOAT_WORDS_BIG_ENDIAN is a tristate and, when defined, can still be 0, so little endian format. i.e. don't check that with a simple #ifdef... --- SheepShaver/src/kpx_cpu/src/mathlib/mathlib.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SheepShaver/src/kpx_cpu/src/mathlib/mathlib.cpp b/SheepShaver/src/kpx_cpu/src/mathlib/mathlib.cpp index 1079ae36..307ae200 100644 --- a/SheepShaver/src/kpx_cpu/src/mathlib/mathlib.cpp +++ b/SheepShaver/src/kpx_cpu/src/mathlib/mathlib.cpp @@ -25,7 +25,11 @@ #include #include -#if defined(HOST_FLOAT_WORDS_BIG_ENDIAN) || defined(WORDS_BIGENDIAN) +// HOST_FLOAT_WORDS_BIG_ENDIAN is a tristate: +// yes (1) / no (0) / default (undefined) +#if HOST_FLOAT_WORDS_BIG_ENDIAN +#define FLOAT_WORD_ORDER_BIG_ENDIAN +#elif defined(WORDS_BIGENDIAN) #define FLOAT_WORD_ORDER_BIG_ENDIAN #endif