From 292b318449180bb3d1d7102df86bda4afd2faecb Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Sun, 2 Jan 2005 19:54:22 +0000 Subject: - defined some macros in preparation to 1.3.18 --- common.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index 28aa42e..e453486 100644 --- a/common.h +++ b/common.h @@ -1,5 +1,5 @@ /* - * $Id: common.h,v 1.2 2004/12/21 18:35:54 lordjaxom Exp $ + * $Id: common.h,v 1.3 2005/01/02 19:54:22 lordjaxom Exp $ */ #ifndef VDR_TEXT2SKIN_COMMON_H @@ -8,10 +8,11 @@ #include "xml/string.h" #include #include +#include #ifdef DEBUG # define Dprintf(x...) fprintf(stderr, x); -# define Dbench(x) time_t bench_##x = time_ms(); +# define Dbench(x) uint64 bench_##x = time_ms(); # define Ddiff(x) time_ms() - bench_##x #else # define Dprintf(x...) @@ -19,6 +20,14 @@ # define Ddiff(x) #endif +#if VDRVERSNUM >= 10318 +# define time_ms() cTimeMs().Now() +# define Apid1() Apid(0) +# define Apid2() Apid(1) +# define Dpid1() Dpid(0) +# define Dpid2() Dpid(1) +#endif + /* Check if a channel is a radio station. */ #define ISRADIO(x) ((x)->Vpid()==0||(x)->Vpid()==1||(x)->Vpid()==0x1fff) -- cgit v1.2.3