Skip to content

Commit c6bac06

Browse files
committed
AVR: Prevent warnings if BIN is previously defined
Fix #4784 Close #4791
1 parent 1fc0997 commit c6bac06

File tree

1 file changed

+3
-0
lines changed
  • hardware/arduino/avr/cores/arduino

1 file changed

+3
-0
lines changed

hardware/arduino/avr/cores/arduino/Print.h

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
#define DEC 10
3030
#define HEX 16
3131
#define OCT 8
32+
#ifdef BIN // Prevent warnings if BIN is previously defined in "iotnx4.h" or similar
33+
#undef BIN
34+
#endif
3235
#define BIN 2
3336

3437
class Print

0 commit comments

Comments
 (0)