diff options
| author | zhkag <[email protected]> | 2023-06-30 00:05:22 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-30 00:05:22 +0800 |
| commit | bce92ed724dd26536b716b0a44e71cf7b33e2587 (patch) | |
| tree | 519d45e189e0292d3440ec6230149b9a44627637 /include | |
| parent | 0740ce0efd4c49f0ea0b3046e5486b4c419c1560 (diff) | |
[atomic]修复bsp/simulator vs2019编译下 atomic 两个volatile的问题 (#7736)
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 39441a2dcf..cf94da1e8b 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -132,7 +132,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ #include <stdatomic.h> typedef atomic_size_t rt_atomic_t; #elif defined(RT_USING_HW_ATOMIC) - typedef volatile rt_base_t rt_atomic_t; + typedef rt_base_t rt_atomic_t; #else /* To detect std atomic */ @@ -140,7 +140,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ #include <stdatomic.h> typedef atomic_size_t rt_atomic_t; #else - typedef volatile rt_base_t rt_atomic_t; + typedef rt_base_t rt_atomic_t; #endif /* __GNUC__ && !__STDC_NO_ATOMICS__ */ #endif /* RT_USING_STDC_ATOMIC */ |
