]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
timers.c: define TIMEOUT_PUBLIC to no tokens when using COCCI.
authorNick Mathewson <nickm@torproject.org>
Wed, 9 Oct 2019 16:48:56 +0000 (12:48 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 22 Oct 2019 13:32:13 +0000 (09:32 -0400)
src/lib/evloop/timers.c

index 4b2a96ef7d7f94001b852161ebc90a5a0b1740da..23562971ca9d3ef4cbfa734f6aad2a19b26bcd6c 100644 (file)
@@ -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