Browse Source

Merge branch 'bugfix/newlib_fix_stdatomic_clang' into 'master'

newlib: fix clang atomics

See merge request espressif/esp-idf!15581
Ivan Grokhotkov 4 years ago
parent
commit
c9b84c2b2c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      components/newlib/stdatomic.c

+ 2 - 2
components/newlib/stdatomic.c

@@ -207,7 +207,7 @@ CLANG_DECLARE_ALIAS( __sync_val_compare_and_swap_ ## n )
     *ptr = val;                                                                  \
     _ATOMIC_EXIT_CRITICAL(state);                                                \
     return ret;                                                                  \
-}
+}                                                                                \
 CLANG_DECLARE_ALIAS( __sync_lock_test_and_set_ ## n )
 
 #define SYNC_LOCK_RELEASE(n, type) void  CLANG_ATOMIC_SUFFIX(__sync_lock_release_ ## n)  (type *ptr) \
@@ -215,7 +215,7 @@ CLANG_DECLARE_ALIAS( __sync_lock_test_and_set_ ## n )
     unsigned state = _ATOMIC_ENTER_CRITICAL();                                   \
     *ptr = 0;                                                                    \
     _ATOMIC_EXIT_CRITICAL(state);                                                \
-}
+}                                                                                \
 CLANG_DECLARE_ALIAS( __sync_lock_release_ ## n )