From: Nick Mathewson Date: Wed, 9 Oct 2019 17:13:54 +0000 (-0400) Subject: threads.h: coccinelle cannot understand a macro. X-Git-Tag: tor-0.4.3.1-alpha~262^2~1^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0b862a7616cfac4db2c85288abf59916b662f03b;p=thirdparty%2Ftor.git threads.h: coccinelle cannot understand a macro. --- 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;