From c6bac064065b667bf8099ed0131742b1f111cb94 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Wed, 8 Mar 2017 13:30:33 +0100 Subject: [PATCH] AVR: Prevent warnings if BIN is previously defined Fix #4784 Close #4791 --- hardware/arduino/avr/cores/arduino/Print.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hardware/arduino/avr/cores/arduino/Print.h b/hardware/arduino/avr/cores/arduino/Print.h index 7b53aa4d1..d099a3b7e 100644 --- a/hardware/arduino/avr/cores/arduino/Print.h +++ b/hardware/arduino/avr/cores/arduino/Print.h @@ -29,6 +29,9 @@ #define DEC 10 #define HEX 16 #define OCT 8 +#ifdef BIN // Prevent warnings if BIN is previously defined in "iotnx4.h" or similar +#undef BIN +#endif #define BIN 2 class Print