diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-10-09 13:13:54 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-10-22 09:32:13 -0400 |
commit | 0b862a7616cfac4db2c85288abf59916b662f03b (patch) | |
tree | 495aba71dd5a66aa089317484567507819822446 /src/lib/thread/threads.h | |
parent | 4346e5569ef9957688aa5b50eab58e7bbe145bb1 (diff) | |
download | tor-0b862a7616cfac4db2c85288abf59916b662f03b.tar.gz tor-0b862a7616cfac4db2c85288abf59916b662f03b.zip |
threads.h: coccinelle cannot understand a macro.
Diffstat (limited to 'src/lib/thread/threads.h')
-rw-r--r-- | src/lib/thread/threads.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/thread/threads.h b/src/lib/thread/threads.h index ecf60641b5..fcce651936 100644 --- a/src/lib/thread/threads.h +++ b/src/lib/thread/threads.h @@ -106,7 +106,9 @@ void tor_threadlocal_set(tor_threadlocal_t *threadlocal, void *value); typedef struct atomic_counter_t { atomic_size_t val; } atomic_counter_t; +#ifndef COCCI #define ATOMIC_LINKAGE static +#endif #else /* !(defined(HAVE_WORKING_STDATOMIC)) */ typedef struct atomic_counter_t { tor_mutex_t mutex; |