summaryrefslogtreecommitdiff
path: root/src/lib/evloop
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-10-09 12:48:56 -0400
committerNick Mathewson <nickm@torproject.org>2019-10-22 09:32:13 -0400
commit0abe89519b5f9d4710b06c6ec77b69879c76e18b (patch)
tree50f07ff7738f2da56460f9670cab44b37eb0f188 /src/lib/evloop
parent9453746b5e2276e26c4aaadba99aec2530889ea0 (diff)
downloadtor-0abe89519b5f9d4710b06c6ec77b69879c76e18b.tar.gz
tor-0abe89519b5f9d4710b06c6ec77b69879c76e18b.zip
timers.c: define TIMEOUT_PUBLIC to no tokens when using COCCI.
Diffstat (limited to 'src/lib/evloop')
-rw-r--r--src/lib/evloop/timers.c4
1 files changed, 3 insertions, 1 deletions
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