Skip to content

Commit c5e0835

Browse files
committed
Fixed missing legacy types
1 parent 3aedaad commit c5e0835

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

ArduinoCore-API/api/Common.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,14 @@ typedef void (*voidFuncPtrParam)(void*);
7272
#define bit(b) (1UL << (b))
7373
#endif
7474

75+
#ifdef SKIP_LEGACY_TYPES
7576
/* TODO: request for removal */
76-
// typedef bool boolean;
77-
// typedef uint8_t byte;
78-
// typedef uint16_t word;
77+
#else
78+
// Keep these legacy types as they expected to be defined by Arduino.h and may be used by user code
79+
typedef bool boolean;
80+
typedef uint8_t byte;
81+
typedef uint16_t word;
82+
#endif
7983

8084
void init(void);
8185
void initVariant(void);

0 commit comments

Comments
 (0)