[core] Avoid re-defining C++ round() method (#321)
This commit is contained in:
@@ -22,7 +22,9 @@ extern "C" {
|
||||
#define voidFuncPtrArg voidFuncPtrParam
|
||||
|
||||
// Additional Arduino compatibility macros
|
||||
#define round(x) ((x) >= 0 ? (long)((x) + 0.5) : (long)((x) - 0.5))
|
||||
#ifndef __cplusplus
|
||||
#define round(x) ((x) >= 0 ? (long)((x) + 0.5) : (long)((x) - 0.5))
|
||||
#endif
|
||||
#define digitalPinToInterrupt(pin) (pin)
|
||||
|
||||
// FreeRTOS utilities
|
||||
|
||||
Reference in New Issue
Block a user