sys/include/c11_atomics_compat.hpp: fix for esp32

Fixes a problem with redefining ATOMIC_VAR_INIT for esp32
This commit is contained in:
JulianHolzwarth 2020-04-15 23:28:20 +02:00
parent 8ef9f0fc6e
commit 6c8b1f10b5

View File

@ -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`