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...
This commit is contained in:
gbeauche 2005-06-22 15:33:22 +00:00
parent 32b5b4f0bd
commit ae52321fe7

View File

@ -25,7 +25,11 @@
#include <stdio.h>
#include <stdlib.h>
#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