summaryrefslogtreecommitdiff
path: root/dist/epgdata2xmltv/epgdata2xmltv.h
diff options
context:
space:
mode:
Diffstat (limited to 'dist/epgdata2xmltv/epgdata2xmltv.h')
-rw-r--r--dist/epgdata2xmltv/epgdata2xmltv.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/dist/epgdata2xmltv/epgdata2xmltv.h b/dist/epgdata2xmltv/epgdata2xmltv.h
index 3748c5d..d2b85d8 100644
--- a/dist/epgdata2xmltv/epgdata2xmltv.h
+++ b/dist/epgdata2xmltv/epgdata2xmltv.h
@@ -18,10 +18,16 @@
#include <sys/stat.h>
#include <unistd.h>
-#define esyslog(a...) void( (SysLogLevel > 0) ? syslog_with_tid(a) : void() )
-#define isyslog(a...) void( (SysLogLevel > 1) ? syslog_with_tid(a) : void() )
-#define dsyslog(a...) void( (SysLogLevel > 2) ? syslog_with_tid(a) : void() )
-#define tsyslog(a...) void( (SysLogLevel > 3) ? syslog_with_tid(a) : void() )
+#if __GNUC__ > 3
+#define UNUSED(v) UNUSED_ ## v __attribute__((unused))
+#else
+#define UNUSED(x) x
+#endif
+
+#define esyslog(a...) void( (SysLogLevel > 0) ? syslog_redir(a) : void() )
+#define isyslog(a...) void( (SysLogLevel > 1) ? syslog_redir(a) : void() )
+#define dsyslog(a...) void( (SysLogLevel > 2) ? syslog_redir(a) : void() )
+#define tsyslog(a...) void( (SysLogLevel > 3) ? syslog_redir(a) : void() )
#define EPGDATA2XMLTV_USERAGENT "libcurl-agent/1.0"
#define EPGDATA2XMLTV_URL "http://www.epgdata.com/index.php?action=sendPackage&iOEM=VDR&dataType=xml&dayOffset=%s"