Procházet zdrojové kódy

Fix Gen7 compile if you have avr-libc version 1.7.1 or higher. See http://code.google.com/p/arduino/issues/detail?id=604

Daid před 12 roky
rodič
revize
caa2b25b40
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2
    0
      Marlin/Gen7/cores/arduino/wiring.h

+ 2
- 0
Marlin/Gen7/cores/arduino/wiring.h Zobrazit soubor

@@ -70,7 +70,9 @@ extern "C"{
70 70
 #define max(a,b) ((a)>(b)?(a):(b))
71 71
 #define abs(x) ((x)>0?(x):-(x))
72 72
 #define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))
73
+#if __AVR_LIBC_VERSION__ < 10701UL
73 74
 #define round(x)     ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
75
+#endif
74 76
 #define radians(deg) ((deg)*DEG_TO_RAD)
75 77
 #define degrees(rad) ((rad)*RAD_TO_DEG)
76 78
 #define sq(x) ((x)*(x))

Loading…
Zrušit
Uložit