Skip to content

Commit 4c061ce

Browse files
ComerLaterRbb666
authored andcommitted
rttypes.h中增加了对ARCH_CPU_64BIT宏的判断
Signed-off-by: latercomer <[email protected]>
1 parent 40360ef commit 4c061ce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/rttypes.h

+6
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ extern "C" {
3232
* RT-Thread basic data types definition
3333
*/
3434

35+
#if defined(_WIN64) || defined(__x86_64__)
36+
#ifndef ARCH_CPU_64BIT
37+
#define ARCH_CPU_64BIT
38+
#endif // ARCH_CPU_64BIT
39+
#endif // defined(_WIN64) || defined(__x86_64__)
40+
3541
typedef int rt_bool_t; /**< boolean type */
3642

3743
#ifndef RT_USING_ARCH_DATA_TYPE

0 commit comments

Comments
 (0)