/* * cbb_compat.h — CBB 库兼容类型别名 * * CBB 库(lib60870)使用了 u8/u16/u32/s16/s32/f32/BOOL/TRUE/FALSE * 等自定义类型/宏,这些类型在原库中依赖 ostype.h 外部定义。 * 此处通过 gcc -include 注入,不修改 CBB 库任何源文件。 */ #ifndef _CBB_COMPAT_H_ #define _CBB_COMPAT_H_ #include #include typedef uint8_t u8; typedef uint16_t u16; typedef uint32_t u32; typedef int16_t s16; typedef int32_t s32; typedef float f32; typedef bool BOOL; #define TRUE true #define FALSE false #endif /* _CBB_COMPAT_H_ */