sys/include/c11_atomics_compat.hpp: fix for esp32
Fixes a problem with redefining ATOMIC_VAR_INIT for esp32
This commit is contained in:
parent
8ef9f0fc6e
commit
6c8b1f10b5
@ -36,7 +36,9 @@
|
||||
* atomic_int foo = ATOMIC_VAR_INIT(42);
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
*/
|
||||
#ifndef ATOMIC_VAR_INIT
|
||||
#define ATOMIC_VAR_INIT(x) { x }
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Type with the same alignment and size as `atomic_bool`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user