]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
timeval.h: Coccinelle cannot understand timercmp.
authorNick Mathewson <nickm@torproject.org>
Wed, 9 Oct 2019 16:51:56 +0000 (12:51 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 22 Oct 2019 13:32:13 +0000 (09:32 -0400)
src/lib/wallclock/timeval.h

index e632d04a04cc0cd8e92946c0383b4bdad1e5bd7e..897a86441694f9e1b5644fbc7e348c1c8a959e6b 100644 (file)
@@ -69,6 +69,7 @@
   } while (0)
 #endif /* !defined(timersub) */
 
+#ifndef COCCI
 #ifndef timercmp
 /** Replacement for timercmp on platforms that do not have it: returns true
  * iff the relational operator "op" makes the expression tv1 op tv2 true.
@@ -82,5 +83,6 @@
    ((tv1)->tv_usec op (tv2)->tv_usec) :         \
    ((tv1)->tv_sec op (tv2)->tv_sec))
 #endif /* !defined(timercmp) */
+#endif
 
 #endif /* !defined(TOR_TIMEVAL_H) */