瀏覽代碼

[include] using signed atomic types

Shell 1 年之前
父節點
當前提交
bb34ce64e0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/rttypes.h

+ 1 - 1
include/rttypes.h

@@ -85,7 +85,7 @@ typedef rt_base_t rt_atomic_t;
 typedef rt_base_t rt_atomic_t;
 #elif defined(RT_USING_STDC_ATOMIC)
 #include <stdatomic.h>
-typedef atomic_size_t rt_atomic_t;
+        typedef atomic_intptr_t rt_atomic_t;
 #else
 typedef rt_base_t rt_atomic_t;
 #endif /* RT_USING_STDC_ATOMIC */