Skip to content

Commit 48c612e

Browse files
committed
Switch to gnu++17 for GIGA
1 parent 1399d64 commit 48c612e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: cores/arduino/Arduino.h

+2
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,12 @@ extern "C"{
5757
#define NOT_AN_INTERRUPT 255
5858

5959
// undefine stdlib's abs if encountered
60+
#if __cplusplus < 201703L
6061
#ifdef abs
6162
#undef abs
6263
#endif // abs
6364
#define abs(x) ((x)>0?(x):-(x))
65+
#endif
6466

6567
#define interrupts() __enable_irq()
6668
#define noInterrupts() __disable_irq()

Diff for: variants/GIGA/cxxflags.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-Wvla
22
-c
33
-fno-rtti
4-
-std=gnu++14
4+
-std=gnu++17
55
-DAPPLICATION_ADDR=0x8040000
66
-DAPPLICATION_RAM_ADDR=0x24000000
77
-DAPPLICATION_RAM_SIZE=0x80000

0 commit comments

Comments
 (0)