[gnoduino/gnoduino-0-3-0] Bug 661807 - Gnoduino doesn't compile with newer avr-libc this is a temporary fix because we're enfo



commit 7fa4627fd477131b7c4a12096dd7af69ea69769a
Author: Lucian Langa <lucilanga gnome org>
Date:   Sun Feb 12 19:00:13 2012 +0100

    Bug 661807 - Gnoduino doesn't compile with newer avr-libc
    this is a temporary fix because we're enforcing bundled API for this branch

 hardware/arduino/cores/arduino/wiring.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/hardware/arduino/cores/arduino/wiring.h b/hardware/arduino/cores/arduino/wiring.h
index e29959b..3297888 100755
--- a/hardware/arduino/cores/arduino/wiring.h
+++ b/hardware/arduino/cores/arduino/wiring.h
@@ -76,7 +76,7 @@ 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)))
-#define round(x)     ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
+//#define round(x)     ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
 #define radians(deg) ((deg)*DEG_TO_RAD)
 #define degrees(rad) ((rad)*RAD_TO_DEG)
 #define sq(x) ((x)*(x))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]