Fix hb_atomic_int_set() implementation for HB_NO_MT
As pointed out by Jonathan Kew.
This commit is contained in:
parent
3b9b7133be
commit
cde1c0114b
|
@ -79,7 +79,7 @@ typedef volatile int hb_atomic_int_t;
|
||||||
#define HB_ATOMIC_INT_NIL 1
|
#define HB_ATOMIC_INT_NIL 1
|
||||||
typedef volatile int hb_atomic_int_t;
|
typedef volatile int hb_atomic_int_t;
|
||||||
#define hb_atomic_int_add(AI, V) ((AI) += (V), (AI) - (V))
|
#define hb_atomic_int_add(AI, V) ((AI) += (V), (AI) - (V))
|
||||||
#define hb_atomic_int_set(AI) ((void) ((AI) = (V)))
|
#define hb_atomic_int_set(AI, V) ((void) ((AI) = (V)))
|
||||||
#define hb_atomic_int_get(AI) (AI)
|
#define hb_atomic_int_get(AI) (AI)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue