From: beutel Date: Tue, 6 Feb 2007 18:12:05 +0000 (+0000) Subject: added avr libc version switch for includes X-Git-Tag: tinyos/2.0.1~194 X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=commitdiff_plain;h=154748e17ad2d727c17b35f2f1b10185d944aef1;p=tinyos-2.x.git added avr libc version switch for includes --- diff --git a/tos/chips/atm128/atm128hardware.h b/tos/chips/atm128/atm128hardware.h index 7ef731ca..f1b26a0e 100644 --- a/tos/chips/atm128/atm128hardware.h +++ b/tos/chips/atm128/atm128hardware.h @@ -42,8 +42,12 @@ #define _H_atmega128hardware_H #include -#include +#if __AVR_LIBC_VERSION__ >= 10400UL +#include +#else #include +#include +#endif #include #include #include "atm128const.h" @@ -129,4 +133,4 @@ mcu_power_t mcombine(mcu_power_t m1, mcu_power_t m2) { return (m1 < m2)? m1: m2; } -#endif //_H_atmega128hardware_H +#endif //_H_atmega128hardware_H \ No newline at end of file