Browse Source

Only define BYTE (ancient Arduino) if not conflicting with other headers

main
PaulStoffregen 7 years ago
parent
commit
d2d4bfcfc1
2 changed files with 10 additions and 0 deletions
  1. +5
    -0
      teensy/Print.h
  2. +5
    -0
      teensy3/Print.h

+ 5
- 0
teensy/Print.h View File

#define HEX 16 #define HEX 16
#define OCT 8 #define OCT 8
#define BIN 2 #define BIN 2

// BYTE was defined in very old versions of Arduino
// maybe this now causes more trouble than it's worth?
#ifndef BYTE
#define BYTE 0 #define BYTE 0
#endif


class __FlashStringHelper; class __FlashStringHelper;



+ 5
- 0
teensy3/Print.h View File

#define HEX 16 #define HEX 16
#define OCT 8 #define OCT 8
#define BIN 2 #define BIN 2

// BYTE was defined in very old versions of Arduino
// maybe this now causes more trouble than it's worth?
#ifndef BYTE
#define BYTE 0 #define BYTE 0
#endif


class __FlashStringHelper; class __FlashStringHelper;



Loading…
Cancel
Save