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:
-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,