Commit 4e4aedc7 authored by Alessandro Rubini's avatar Alessandro Rubini

<ppsi/jiffies.h>: don't re-define time_after etc

Sometimes the macros may already be defined (e.g.: arch-bathos).
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent c8b02aaa
......@@ -25,6 +25,7 @@
* good compiler would generate better code (and a really good compiler
* wouldn't care). Gcc is currently neither.
*/
#ifndef time_after /* Maybe someone else defined them already */
#define time_after(a,b) \
(typecheck(unsigned long, a) && \
typecheck(unsigned long, b) && \
......@@ -36,5 +37,5 @@
typecheck(unsigned long, b) && \
((long)(a) - (long)(b) >= 0))
#define time_before_eq(a,b) time_after_eq(b,a)
#endif /* ifndef */
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment