Skip to content

Commit 09e08b7

Browse files
committed
Added checking gcc version
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 0e046b5 commit 09e08b7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: cores/arduino/Arduino.h

+9
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@
2020
#ifndef Arduino_h
2121
#define Arduino_h
2222

23+
#ifndef GCC_VERSION
24+
#define GCC_VERSION (__GNUC__ * 10000 \
25+
+ __GNUC_MINOR__ * 100 \
26+
+ __GNUC_PATCHLEVEL__)
27+
#endif
28+
#if GCC_VERSION < 60300
29+
#error "GCC version 6.3 or higher is required"
30+
#endif
31+
2332
#include "wiring.h"
2433

2534
/* sketch */

0 commit comments

Comments
 (0)