Skip to content

Commit 9960b6e

Browse files
authored
Merge pull request stm32duino#171 from fpistm/gcc_check
Added checking gcc version
2 parents edf583e + 09e08b7 commit 9960b6e

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)