We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 895b6e8 commit 1d97f0cCopy full SHA for 1d97f0c
cores/common/arduino/src/wiring/wiring_compat.h
@@ -22,7 +22,9 @@ extern "C" {
22
#define voidFuncPtrArg voidFuncPtrParam
23
24
// Additional Arduino compatibility macros
25
-#define round(x) ((x) >= 0 ? (long)((x) + 0.5) : (long)((x) - 0.5))
+#ifndef __cplusplus
26
+#define round(x) ((x) >= 0 ? (long)((x) + 0.5) : (long)((x) - 0.5))
27
+#endif
28
#define digitalPinToInterrupt(pin) (pin)
29
30
// FreeRTOS utilities
0 commit comments