reactos/lib/3rdparty/adns/adns_win32/timercmp.h
Amine Khaldi 527f2f9057 [SHELL/EXPERIMENTS]
* Create a branch for some evul shell experiments.

svn path=/branches/shell-experiments/; revision=61927
2014-02-02 19:37:27 +00:00

15 lines
452 B
C

#ifndef TIMERCMP_H
#define TIMERCMP_H
#ifndef timercmp
/* Taken from sys/time.h on linux. */
# define timercmp(a, b, CMP) \
(((a)->tv_sec == (b)->tv_sec) ? \
((a)->tv_usec CMP (b)->tv_usec) : \
((a)->tv_sec CMP (b)->tv_sec))
# define timerclear(a) ((a)->tv_sec = (a)->tv_usec = 0)
#endif
#endif//TIMERCMP_H