]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
threads.h: coccinelle cannot understand a macro.
authorNick Mathewson <nickm@torproject.org>
Wed, 9 Oct 2019 17:13:54 +0000 (13:13 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 22 Oct 2019 13:32:13 +0000 (09:32 -0400)
src/lib/thread/threads.h

index ecf60641b5c2b7a29b72ce25f169b9430272242a..fcce65193658f2bfd8995d0ddc9e4768a1522812 100644 (file)
@@ -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;