Skip to content

Commit

Permalink
sys/include/c11_atomics_compat.hpp: fix for esp32
Browse files Browse the repository at this point in the history
Fixes a problem with redefining ATOMIC_VAR_INIT for esp32
  • Loading branch information
JulianHolzwarth committed May 4, 2020
1 parent 8ef9f0f commit 6c8b1f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sys/include/c11_atomics_compat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 6c8b1f1

Please sign in to comment.