diff options
author | junukn <junukn@1f4bef6d-8e0a-0410-8695-e467da8aaccf> | 2006-05-16 21:25:51 +0000 |
---|---|---|
committer | junukn <junukn@1f4bef6d-8e0a-0410-8695-e467da8aaccf> | 2006-05-16 21:25:51 +0000 |
commit | 1213ecc20171d1ad307b6b5975fad1f5a3e10a64 (patch) | |
tree | e6be506a03473d56559d3531cbe8bcbbca73a5f8 | |
parent | c71f26d9d4acbaeaec72c53622055657bc7b23d7 (diff) | |
download | vdr-plugin-ffnetdev-1213ecc20171d1ad307b6b5975fad1f5a3e10a64.tar.gz vdr-plugin-ffnetdev-1213ecc20171d1ad307b6b5975fad1f5a3e10a64.tar.bz2 |
allow to compile with VDR smaller than 10347
git-svn-id: svn://svn.berlios.de/ffnetdev/trunk@18 1f4bef6d-8e0a-0410-8695-e467da8aaccf
-rw-r--r-- | ffnetdev.c | 2 | ||||
-rw-r--r-- | ffnetdev.h | 9 | ||||
-rw-r--r-- | remote.c | 2 | ||||
-rw-r--r-- | tools/socket.c | 2 |
4 files changed, 11 insertions, 4 deletions
@@ -136,7 +136,7 @@ cString cPluginFFNetDev::Active(void) { return NULL; } -#elif +#elseif bool cPluginFFNetDev::Active(void) { return (cOSDWorker::Active() || cTSWorker::Active()); } @@ -40,13 +40,18 @@ public: virtual cOsdObject *MainMenuAction(void); virtual cMenuSetupPage *SetupMenu(void); virtual bool SetupParse(const char *Name, const char *Value); + +#ifndef VDRVERSNUM +#define VDRVERSNUM 10346 +#endif #if VDRVERSNUM >= 10347 virtual cString Active(void); -#elif +#elseif virtual bool Active(void); #endif - + + void SetPrimaryDevice(); void RestorePrimaryDevice(); cMyRemote *GetRemote() { return m_Remote; } @@ -29,9 +29,11 @@ bool cMyRemote::Initialize(void) bool cMyRemote::Put(uint64 Code, bool Repeat, bool Release) { +#if VDRVERSNUM >= 10347 if ((cRemote::IsLearning()) && (Release)) return false; else +#endif return cRemote::Put(Code, Repeat ,Release); } diff --git a/tools/socket.c b/tools/socket.c index 1323ddd..2061dec 100644 --- a/tools/socket.c +++ b/tools/socket.c @@ -88,7 +88,7 @@ bool cTBSocket::Listen(const std::string &Ip, unsigned int Port, int BackLog) { return true; closefd: - :close(socket); + ::close(socket); return false; } |