aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/Source
diff options
context:
space:
mode:
authorNicolas Schodet2010-01-17 19:13:40 +0100
committerNicolas Schodet2010-08-20 00:18:22 +0200
commit4d6a5a4b6fdd56a214f5e45e76c363fbf1258d7a (patch)
treed645ae078d7c8fd71de4873d9cbd0026419f9bc5 /AT91SAM7S256/Source
parent9df1f32831cfc6bf8d839ea3bc7caaa340f6936b (diff)
gcc: add gcc defines to ARM compilation test
Diffstat (limited to 'AT91SAM7S256/Source')
-rw-r--r--AT91SAM7S256/Source/c_cmd.h4
1 files 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