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:
Kp 2013-03-03 23:46:22 +00:00
parent ac82280250
commit 9edfd78dcc

View file

@ -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"