From 9edfd78dcc219ff52de50979f3ce44c2a50bfb06 Mon Sep 17 00:00:00 2001 From: Kp Date: Sun, 3 Mar 2013 23:46:22 +0000 Subject: [PATCH] Use #ifdef, not #if, to test WORDS_BIGENDIAN On little endian machines, WORDS_BIGENDIAN is undefined, so testing using #if triggers warning -Wundef. --- main/newdemo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/newdemo.h b/main/newdemo.h index cfadbf829..92274477e 100644 --- a/main/newdemo.h +++ b/main/newdemo.h @@ -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"