From: Nick Mathewson Date: Wed, 9 Oct 2019 16:48:56 +0000 (-0400) Subject: timers.c: define TIMEOUT_PUBLIC to no tokens when using COCCI. X-Git-Tag: tor-0.4.3.1-alpha~262^2~1^2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0abe89519b5f9d4710b06c6ec77b69879c76e18b;p=thirdparty%2Ftor.git timers.c: define TIMEOUT_PUBLIC to no tokens when using COCCI. --- diff --git a/src/lib/evloop/timers.c b/src/lib/evloop/timers.c index 4b2a96ef7d..23562971ca 100644 --- a/src/lib/evloop/timers.c +++ b/src/lib/evloop/timers.c @@ -56,7 +56,9 @@ struct timeout_cb { /* * These definitions are for timeouts.c and timeouts.h. */ -#ifdef __GNUC__ +#ifdef COCCI +#define TIMEOUT_PUBLIC +#elif defined(__GNUC__) /* We're not exposing any of the functions outside this file. */ #define TIMEOUT_PUBLIC __attribute__((__unused__)) static #else