summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xhardware/arduino/cores/arduino/wiring.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hardware/arduino/cores/arduino/wiring.h b/hardware/arduino/cores/arduino/wiring.h
index e29959b..c022064 100755
--- a/hardware/arduino/cores/arduino/wiring.h
+++ b/hardware/arduino/cores/arduino/wiring.h
@@ -76,7 +76,9 @@ extern "C"{
#define max(a,b) ((a)>(b)?(a):(b))
#define abs(x) ((x)>0?(x):-(x))
#define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))
+#if __AVR_LIBC_VERSION__ < 10701UL
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
+#endif
#define radians(deg) ((deg)*DEG_TO_RAD)
#define degrees(rad) ((rad)*RAD_TO_DEG)
#define sq(x) ((x)*(x))