Browse Source

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

Signed-off-by: latercomer <latercomer@qq.com>
latercomer 3 months ago
parent
commit
4c061ceffe
1 changed files with 6 additions and 0 deletions
  1. 6 0
      include/rttypes.h

+ 6 - 0
include/rttypes.h

@@ -32,6 +32,12 @@ extern "C" {
  * RT-Thread basic data types definition
  * 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 */
 typedef int                             rt_bool_t;      /**< boolean type */
 
 
 #ifndef RT_USING_ARCH_DATA_TYPE
 #ifndef RT_USING_ARCH_DATA_TYPE