mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Check if GCC_VERSION is defined before defining it
This commit is contained in:
parent
35e8bb2dbf
commit
ef4757f88f
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue