mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-09-07 16:54:28 +00:00
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:
parent
32b5b4f0bd
commit
ae52321fe7
@ -25,7 +25,11 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.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
|
#define FLOAT_WORD_ORDER_BIG_ENDIAN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user