[include] using signed atomic types
This commit is contained in:
parent
e50fbe8b94
commit
ad9c20950f
|
@ -79,16 +79,16 @@ typedef rt_ubase_t rt_dev_t; /**< Type for device */
|
||||||
typedef rt_base_t rt_off_t; /**< Type for offset */
|
typedef rt_base_t rt_off_t; /**< Type for offset */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
typedef rt_ubase_t rt_atomic_t;
|
typedef rt_base_t rt_atomic_t;
|
||||||
#else
|
#else
|
||||||
#if defined(RT_USING_HW_ATOMIC)
|
#if defined(RT_USING_HW_ATOMIC)
|
||||||
typedef rt_ubase_t rt_atomic_t;
|
typedef rt_base_t rt_atomic_t;
|
||||||
#elif defined(RT_USING_STDC_ATOMIC)
|
#elif defined(RT_USING_STDC_ATOMIC)
|
||||||
#include <stdatomic.h>
|
#include <stdatomic.h>
|
||||||
typedef atomic_size_t rt_atomic_t;
|
typedef atomic_intptr_t rt_atomic_t;
|
||||||
#else
|
#else
|
||||||
typedef rt_ubase_t rt_atomic_t;
|
typedef rt_base_t rt_atomic_t;
|
||||||
#endif /* RT_USING_STDC_ATOMIC */
|
#endif /* RT_USING_STDC_ATOMIC */
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
/* boolean type definitions */
|
/* boolean type definitions */
|
||||||
|
|
Loading…
Reference in New Issue