From 9c4fe1e49777722998720f2684e56b6c98be04bc Mon Sep 17 00:00:00 2001 From: schodet Date: Sat, 5 May 2007 12:46:52 +0000 Subject: Fixed problems with avr-libc 1.4 and GCC 4. --- n/avr/common/io.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'n/avr/common') diff --git a/n/avr/common/io.h b/n/avr/common/io.h index 57c453d..8722eb1 100644 --- a/n/avr/common/io.h +++ b/n/avr/common/io.h @@ -29,10 +29,13 @@ /* Avr part. */ #include -#include - -/* No INTERRUPT as it is dangerous. */ -#undef INTERRUPT +#if __AVR_LIBC_VERSION__ < 10400UL +# include + /* No INTERRUPT as it is dangerous. */ +# undef INTERRUPT + /* SIGNAL is now ISR. */ +# define ISR SIGNAL +#endif #else /* HOST */ -- cgit v1.2.3