diff --git a/HISTORY b/HISTORY index 28d771b3..98534bc7 100644 --- a/HISTORY +++ b/HISTORY @@ -1813,7 +1813,7 @@ Video Disk Recorder Revision History makes far jumps, so that a lock file might end up with a time stamp that lies in the distant future (thanks to Oliver Endriss). -2002-11-29: Version 1.1.18 +2002-11-30: Version 1.1.18 - Fixed missing initialization of 'number' in cChannel (thanks to Martin Hammerschmid for reporting this one). @@ -1826,3 +1826,4 @@ Video Disk Recorder Revision History Clemens Kirchgatterer). - Removed transponders 10788, 11739 and 12266 from 'channels.conf' (apparently they are no longer active). +- Deactivated some templates in tools.h in case some plugin needs to use the STL. diff --git a/tools.h b/tools.h index efa2de6a..4e3e2820 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.52 2002/11/09 15:32:36 kls Exp $ + * $Id: tools.h 1.53 2002/11/30 12:51:45 kls Exp $ */ #ifndef __TOOLS_H @@ -45,10 +45,12 @@ extern int SysLogLevel; #define CHECK(s) { if ((s) < 0) LOG_ERROR; } // used for 'ioctl()' calls #define FATALERRNO (errno != EAGAIN && errno != EINTR) +#ifndef __STL_CONFIG_H // in case some plugin needs to use the STL 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; } +#endif ssize_t safe_read(int filedes, void *buffer, size_t size); ssize_t safe_write(int filedes, const void *buffer, size_t size);