From ef4757f88fe0a38bab3d7beb37aaca4a3ddf67b2 Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Sat, 21 Dec 2013 13:40:28 +0100 Subject: [PATCH] Check if GCC_VERSION is defined before defining it --- settings.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/settings.h b/settings.h index d49b7aa5..f7914b2a 100644 --- a/settings.h +++ b/settings.h @@ -78,7 +78,9 @@ #endif #ifdef __GNUC__ +#ifndef GCC_VERSION #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) +#endif #if GCC_VERSION < 40602 // Test for GCC < 4.6.2 #ifdef PROGMEM #undef PROGMEM