Use #ifdef, not #if, to test WORDS_BIGENDIAN
On little endian machines, WORDS_BIGENDIAN is undefined, so testing using #if triggers warning -Wundef.
This commit is contained in:
parent
ac82280250
commit
9edfd78dcc
|
@ -32,7 +32,7 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
|
||||
#define DEMO_DIR "demos/"
|
||||
#define DEMO_EXT ".dem"
|
||||
#if WORDS_BIGENDIAN
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
#define DEMO_BACKUP_EXT "386"
|
||||
#else
|
||||
#define DEMO_BACKUP_EXT "ppc"
|
||||
|
|
Loading…
Reference in a new issue