فهرست منبع

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

Signed-off-by: latercomer <latercomer@qq.com>
latercomer 5 ماه پیش
والد
کامیت
4c061ceffe
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      include/rttypes.h

+ 6 - 0
include/rttypes.h

@@ -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