From 1138485b6de8c311a43790fe9e9f7bfdf8e27d79 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Wed, 8 Mar 2017 13:30:33 +0100 Subject: AVR: Prevent warnings if BIN is previously defined Fix #4784 Close #4791 --- cores/arduino/Print.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cores/arduino/Print.h b/cores/arduino/Print.h index 7b53aa4..d099a3b 100644 --- a/cores/arduino/Print.h +++ b/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 -- cgit v1.2.3-18-g5258