From 54043194a2afb962f34fd47ed304e2fe634b61b3 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Thu, 8 Jul 2010 21:08:30 +0200 Subject: Added compatibility for GCC3.x --- filter.cpp | 4 ++++ infosatepg.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/filter.cpp b/filter.cpp index c1e288d..1f378d5 100644 --- a/filter.cpp +++ b/filter.cpp @@ -13,7 +13,11 @@ #undef WRITE_RAW +#if __GNUC__ > 3 #define UNUSED(v) UNUSED_ ## v __attribute__((unused)) +#else +#define UNUSED(x) x +#endif cFilterInfosatepg::cFilterInfosatepg(cGlobalInfosatepg *Global) { diff --git a/infosatepg.cpp b/infosatepg.cpp index 07a1aea..fd09db5 100644 --- a/infosatepg.cpp +++ b/infosatepg.cpp @@ -18,7 +18,11 @@ #include "setup.h" #include "process.h" +#if __GNUC__ > 3 #define UNUSED(v) UNUSED_ ## v __attribute__((unused)) +#else +#define UNUSED(x) x +#endif extern char *strcatrealloc(char *dest, const char *src); -- cgit v1.2.3