diff --git a/cores/arduino/Arduino.h b/cores/arduino/Arduino.h index a553f45bdc..b5289cbdeb 100644 --- a/cores/arduino/Arduino.h +++ b/cores/arduino/Arduino.h @@ -20,6 +20,15 @@ #ifndef Arduino_h #define Arduino_h +#ifndef GCC_VERSION +#define GCC_VERSION (__GNUC__ * 10000 \ + + __GNUC_MINOR__ * 100 \ + + __GNUC_PATCHLEVEL__) +#endif +#if GCC_VERSION < 60300 +#error "GCC version 6.3 or higher is required" +#endif + #include "wiring.h" /* sketch */