[tor-commits] [tor/master] threads.h: coccinelle cannot understand a macro.
teor at torproject.org
teor at torproject.org
Thu Oct 24 00:01:21 UTC 2019
commit 0b862a7616cfac4db2c85288abf59916b662f03b
Author: Nick Mathewson <nickm at torproject.org>
Date: Wed Oct 9 13:13:54 2019 -0400
threads.h: coccinelle cannot understand a macro.
---
src/lib/thread/threads.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/lib/thread/threads.h b/src/lib/thread/threads.h
index ecf60641b..fcce65193 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;
More information about the tor-commits
mailing list