summaryrefslogtreecommitdiff
path: root/n
diff options
context:
space:
mode:
Diffstat (limited to 'n')
-rw-r--r--n/avr/common/io.h11
-rw-r--r--n/avr/make/Makefile.gen3
2 files changed, 9 insertions, 5 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 */
diff --git a/n/avr/make/Makefile.gen b/n/avr/make/Makefile.gen
index 5193e43..0fa9b98 100644
--- a/n/avr/make/Makefile.gen
+++ b/n/avr/make/Makefile.gen
@@ -3,7 +3,8 @@
# Flags
INCLUDES := -I$(BASE) -I$(BASE)/common
-CFLAGS := -g -Wall -W -Wundef -Wno-unused-parameter $(OPTIMIZE)
+CFLAGS := -g -Wall -W -Wundef -Wno-unused-parameter -Wno-pointer-sign \
+ $(OPTIMIZE)
ASFLAGS := -Wa,--gstabs
CPPFLAGS := $(DEFS) $(INCLUDES) -MMD \
$(if $(CONFIGFILE),$(CONFIGFILE:%=-include %))