1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

Arduino custom type boolean is now mapped to bool type

Fixes #2151
Fixes #2147
This commit is contained in:
Cristian Maglie
2015-01-07 14:56:19 +01:00
parent 863cb417a6
commit 20ac20f629
2 changed files with 2 additions and 4 deletions

View File

@ -114,7 +114,7 @@ typedef unsigned int word;
#define bit(b) (1UL << (b)) #define bit(b) (1UL << (b))
typedef uint8_t boolean; typedef bool boolean;
typedef uint8_t byte; typedef uint8_t byte;
void init(void); void init(void);

View File

@ -92,11 +92,9 @@ typedef unsigned int word;
#define bit(b) (1UL << (b)) #define bit(b) (1UL << (b))
// TODO: to be checked typedef bool boolean ;
typedef uint8_t boolean ;
typedef uint8_t byte ; typedef uint8_t byte ;
#ifdef __cplusplus #ifdef __cplusplus
} // extern "C" } // extern "C"
#endif // __cplusplus #endif // __cplusplus