8000 Make it c++ 17 happy · arduino/ArduinoCore-mbed@fcc76c3 · GitHub
[go: up one dir, main page]

Skip to content

Commit fcc76c3

Browse files
authored
Make it c++ 17 happy
1 parent 505c3d8 commit fcc76c3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cores/arduino/Arduino.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@ extern "C"{
5656
#define NOT_A_PORT 255
5757
#define NOT_AN_INTERRUPT 255
5858

59+
// make it c++ 17 happy
5960
// undefine stdlib's abs if encountered
60-
#ifdef abs
61-
#undef abs
62-
#endif // abs
63-
#define abs(x) ((x)>0?(x):-(x))
61+
// #ifdef abs
62+
// #undef abs
63+
// #endif // abs
64+
// #define abs(x) ((x)>0?(x):-(x))
6465

6566
#define interrupts() __enable_irq()
6667
#define noInterrupts() __disable_irq()

0 commit comments

Comments
 (0)
0