mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Deactivated some templates in in case some plugin needs to use the STL
This commit is contained in:
parent
9f5e43f3df
commit
7fcfd58f3c
3
HISTORY
3
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
|
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).
|
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
|
- Fixed missing initialization of 'number' in cChannel (thanks to Martin Hammerschmid
|
||||||
for reporting this one).
|
for reporting this one).
|
||||||
@ -1826,3 +1826,4 @@ Video Disk Recorder Revision History
|
|||||||
Clemens Kirchgatterer).
|
Clemens Kirchgatterer).
|
||||||
- Removed transponders 10788, 11739 and 12266 from 'channels.conf' (apparently they
|
- Removed transponders 10788, 11739 and 12266 from 'channels.conf' (apparently they
|
||||||
are no longer active).
|
are no longer active).
|
||||||
|
- Deactivated some templates in tools.h in case some plugin needs to use the STL.
|
||||||
|
4
tools.h
4
tools.h
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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
|
#ifndef __TOOLS_H
|
||||||
@ -45,10 +45,12 @@ extern int SysLogLevel;
|
|||||||
#define CHECK(s) { if ((s) < 0) LOG_ERROR; } // used for 'ioctl()' calls
|
#define CHECK(s) { if ((s) < 0) LOG_ERROR; } // used for 'ioctl()' calls
|
||||||
#define FATALERRNO (errno != EAGAIN && errno != EINTR)
|
#define FATALERRNO (errno != EAGAIN && errno != EINTR)
|
||||||
|
|
||||||
|
#ifndef __STL_CONFIG_H // in case some plugin needs to use the STL
|
||||||
template<class T> inline T min(T a, T b) { return a <= b ? a : b; }
|
template<class T> inline T min(T a, T b) { return a <= b ? a : b; }
|
||||||
template<class T> inline T max(T a, T b) { return a >= b ? a : b; }
|
template<class T> inline T max(T a, T b) { return a >= b ? a : b; }
|
||||||
template<class T> inline int sgn(T a) { return a < 0 ? -1 : a > 0 ? 1 : 0; }
|
template<class T> inline int sgn(T a) { return a < 0 ? -1 : a > 0 ? 1 : 0; }
|
||||||
template<class T> inline void swap(T &a, T &b) { T t = a; a = b; b = t; }
|
template<class T> 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_read(int filedes, void *buffer, size_t size);
|
||||||
ssize_t safe_write(int filedes, const void *buffer, size_t size);
|
ssize_t safe_write(int filedes, const void *buffer, size_t size);
|
||||||
|
Loading…
Reference in New Issue
Block a user