We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3aedaad commit c5e0835Copy full SHA for c5e0835
1 file changed
ArduinoCore-API/api/Common.h
@@ -72,10 +72,14 @@ typedef void (*voidFuncPtrParam)(void*);
72
#define bit(b) (1UL << (b))
73
#endif
74
75
+#ifdef SKIP_LEGACY_TYPES
76
/* TODO: request for removal */
-// typedef bool boolean;
77
-// typedef uint8_t byte;
78
-// typedef uint16_t word;
+#else
+// 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
83
84
void init(void);
85
void initVariant(void);
0 commit comments