From 59c75144e883d705ca5cd0b0df1d0bec94183503 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Fri, 7 Sep 2007 10:20:30 +0000 Subject: [PATCH] compare clock_time_t's --- core/sys/clock.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/sys/clock.h b/core/sys/clock.h index 8bcef866d..144c646e9 100644 --- a/core/sys/clock.h +++ b/core/sys/clock.h @@ -53,13 +53,15 @@ * * Author: Adam Dunkels * - * $Id: clock.h,v 1.2 2007/03/25 21:51:31 adamdunkels Exp $ + * $Id: clock.h,v 1.3 2007/09/07 10:20:30 fros4943 Exp $ */ #ifndef __CLOCK_H__ #define __CLOCK_H__ #include "contiki-conf.h" +#define CLOCK_LT(a,b) ((signed short)((a)-(b)) < 0) + /** * Initialize the clock library. *