We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f1fa3c commit e201015Copy full SHA for e201015
1 file changed
src/config.h.in
@@ -34,10 +34,11 @@
34
#cmakedefine HAVE_STDATOMIC
35
#ifdef HAVE_STDATOMIC
36
# include <stdatomic.h>
37
+# include <stdint.h>
38
39
# define ATOMIC_UINT32_T atomic_uint_fast32_t
40
# define ATOMIC_PTR atomic_uintptr_t
-# define ATOMIC_STORE(x, val) atomic_store(&(x), (atomic_uintptr_t)(val))
41
+# define ATOMIC_STORE(x, val) atomic_store(&(x), (uintptr_t)(val))
42
# define ATOMIC_LOAD(x) ((void *)atomic_load(&(x)))
43
# define ATOMIC_INC(x) atomic_fetch_add(&(x), 1)
44
#else
0 commit comments