From 4d6a5a4b6fdd56a214f5e45e76c363fbf1258d7a Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sun, 17 Jan 2010 19:13:40 +0100 Subject: gcc: add gcc defines to ARM compilation test --- AT91SAM7S256/Source/c_cmd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AT91SAM7S256/Source/c_cmd.h b/AT91SAM7S256/Source/c_cmd.h index e9227eb..86949cb 100644 --- a/AT91SAM7S256/Source/c_cmd.h +++ b/AT91SAM7S256/Source/c_cmd.h @@ -41,9 +41,9 @@ void cCmdExit(void); // //ARM_NXT vs SIM_NXT //These definitions are set up to allow compiling this code for use in a simulated (non-ARM7) environment. -//If your toolchain doesn't automatically use the __ICCARM__ token, define it to ensure normal compilation. +//If your toolchain doesn't automatically use the __ICCARM__ or __arm__ token, define it to ensure normal compilation. // -#ifdef __ICCARM__ +#if defined (__ICCARM__) || (defined (__GNUC__) && defined (__arm__)) #define ARM_NXT #else #define SIM_NXT -- cgit v1.2.3