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 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 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 */