Pārlūkot izejas kodu

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

teensy4-core
PaulStoffregen pirms 7 gadiem
vecāks
revīzija
d2d4bfcfc1
2 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  1. +5
    -0
      teensy/Print.h
  2. +5
    -0
      teensy3/Print.h

+ 5
- 0
teensy/Print.h Parādīt failu

@@ -31,7 +31,12 @@
#define HEX 16
#define OCT 8
#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
#endif

class __FlashStringHelper;


+ 5
- 0
teensy3/Print.h Parādīt failu

@@ -42,7 +42,12 @@
#define HEX 16
#define OCT 8
#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
#endif

class __FlashStringHelper;


Notiek ielāde…
Atcelt
Saglabāt