Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Garcia <danielgarcia@gmail.com>2016-06-21 22:50:30 +0300
committerDaniel Garcia <danielgarcia@gmail.com>2016-06-21 22:50:30 +0300
commit8498e72eb061f6707f539df134efae256c08cca5 (patch)
tree61b2d63b797e056b7ea958a4c6d5b81d70318355
parenta3641f093f30690f5372258d226d04b71e26be0a (diff)
Limit the range of the PROGMEM bug workaround to gcc versions older than 4.6.
-rw-r--r--fastled_progmem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fastled_progmem.h b/fastled_progmem.h
index 342fe6eb..f182712a 100644
--- a/fastled_progmem.h
+++ b/fastled_progmem.h
@@ -41,12 +41,14 @@ FASTLED_NAMESPACE_BEGIN
#define FL_PGM_READ_DWORD_NEAR(x) (pgm_read_dword_near(x))
// Workaround for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34734
+#if __GNUC__ < 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ < 6))
#ifdef FASTLED_AVR
#ifdef PROGMEM
#undef PROGMEM
#define PROGMEM __attribute__((section(".progmem.data")))
#endif
#endif
+#endif
#else
// If FASTLED_USE_PROGMEM is 0 or undefined,