Check if GCC_VERSION is defined before defining it

This commit is contained in:
Kristian Lauszus 2013-12-21 13:40:28 +01:00
parent 35e8bb2dbf
commit ef4757f88f

View file

@ -78,7 +78,9 @@
#endif #endif
#ifdef __GNUC__ #ifdef __GNUC__
#ifndef GCC_VERSION
#define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
#endif
#if GCC_VERSION < 40602 // Test for GCC < 4.6.2 #if GCC_VERSION < 40602 // Test for GCC < 4.6.2
#ifdef PROGMEM #ifdef PROGMEM
#undef PROGMEM #undef PROGMEM