summaryrefslogtreecommitdiff
path: root/n/avr/common
diff options
context:
space:
mode:
authorschodet2007-05-05 12:46:52 +0000
committerschodet2007-05-05 12:46:52 +0000
commit9c4fe1e49777722998720f2684e56b6c98be04bc (patch)
tree4a702b5c2e67c7284f73be037c01d263b62fd0ae /n/avr/common
parent35b25b9db1f618c51be20f8483a9e31a2949da84 (diff)
Fixed problems with avr-libc 1.4 and GCC 4.
Diffstat (limited to 'n/avr/common')
-rw-r--r--n/avr/common/io.h11
1 files changed, 7 insertions, 4 deletions
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 <avr/interrupt.h>
-#include <avr/signal.h>
-
-/* No INTERRUPT as it is dangerous. */
-#undef INTERRUPT
+#if __AVR_LIBC_VERSION__ < 10400UL
+# include <avr/signal.h>
+ /* No INTERRUPT as it is dangerous. */
+# undef INTERRUPT
+ /* SIGNAL is now ISR. */
+# define ISR SIGNAL
+#endif
#else /* HOST */