summaryrefslogtreecommitdiff
path: root/n/avr/common
diff options
context:
space:
mode:
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 */