rttypes.h中增加了对ARCH_CPU_64BIT宏的判断

Signed-off-by: latercomer <latercomer@qq.com>
This commit is contained in:
latercomer 2025-03-16 23:30:54 +08:00 committed by Rbb666
parent 40360efe1d
commit 4c061ceffe
1 changed files with 6 additions and 0 deletions

View File

@ -32,6 +32,12 @@ extern "C" {
* RT-Thread basic data types definition
*/
#if defined(_WIN64) || defined(__x86_64__)
#ifndef ARCH_CPU_64BIT
#define ARCH_CPU_64BIT
#endif // ARCH_CPU_64BIT
#endif // defined(_WIN64) || defined(__x86_64__)
typedef int rt_bool_t; /**< boolean type */
#ifndef RT_USING_ARCH_DATA_TYPE