From 1b396902e488e093234ac181bbc0e514dd098942 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 8 Sep 2002 11:46:53 +0200 Subject: Skipping unavailable channels when switching with 'Up' and 'Down' keys --- tools.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools.h') diff --git a/tools.h b/tools.h index ebabb470..f8bf43f2 100644 --- a/tools.h +++ b/tools.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: tools.h 1.49 2002/08/16 08:52:01 kls Exp $ + * $Id: tools.h 1.50 2002/09/08 10:22:29 kls Exp $ */ #ifndef __TOOLS_H @@ -46,6 +46,7 @@ extern int SysLogLevel; template inline T min(T a, T b) { return a <= b ? a : b; } template inline T max(T a, T b) { return a >= b ? a : b; } +template inline int sgn(T a) { return a < 0 ? -1 : a > 0 ? 1 : 0; } template inline void swap(T &a, T &b) { T t = a; a = b; b = t; } ssize_t safe_read(int filedes, void *buffer, size_t size); -- cgit v1.2.3