From a23710b19dc9d30eb636c784a021a3ba5c0bdff7 Mon Sep 17 00:00:00 2001
From: Stefan Hofmann <stefan.hofmann@t-online.de>
Date: Sat, 12 Oct 2024 16:31:12 +0200
Subject: [PATCH] Fixed warnings of undefined DEPRECATED macros

---
 epg.c    | 2 +-
 epg.h    | 2 +-
 filter.c | 2 +-
 filter.h | 2 +-
 player.c | 2 +-
 player.h | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/epg.c b/epg.c
index 1639059f..32dd4263 100644
--- a/epg.c
+++ b/epg.c
@@ -1064,7 +1064,7 @@ const cEvent *cSchedule::GetFollowingEvent(void) const
   return p;
 }
 
-#if DEPRECATED_SCHEDULE_GET_EVENT
+#ifdef DEPRECATED_SCHEDULE_GET_EVENT
 const cEvent *cSchedule::GetEvent(tEventID EventID, time_t StartTime) const
 {
   // Returns the event info with the given StartTime or, if no actual StartTime
diff --git a/epg.h b/epg.h
index f3f3ea38..e51d42d7 100644
--- a/epg.h
+++ b/epg.h
@@ -200,7 +200,7 @@ public:
   const cList<cEvent> *Events(void) const { return &events; }
   const cEvent *GetPresentEvent(void) const;
   const cEvent *GetFollowingEvent(void) const;
-#if DEPRECATED_SCHEDULE_GET_EVENT
+#ifdef DEPRECATED_SCHEDULE_GET_EVENT
   [[deprecated("see HISTORY, version 2.5.2")]]
   const cEvent *GetEvent(tEventID EventID, time_t StartTime = 0) const;
 #endif
diff --git a/filter.c b/filter.c
index e1abd574..b7eb7bd2 100644
--- a/filter.c
+++ b/filter.c
@@ -73,7 +73,7 @@ bool cSectionSyncer::Processed(int SectionNumber, int LastSectionNumber, int Seg
   return complete;
 }
 
-#if DEPRECATED_SECTIONSYNCER_SYNC_REPEAT
+#ifdef DEPRECATED_SECTIONSYNCER_SYNC_REPEAT
 void cSectionSyncer::Repeat(void)
 {
   SetSectionFlag(currentSection, false);
diff --git a/filter.h b/filter.h
index 1a25e796..627fe03a 100644
--- a/filter.h
+++ b/filter.h
@@ -47,7 +47,7 @@ public:
        ///< Returns true if all sections have been processed.
   bool Complete(void) { return complete; }
        ///< Returns true if all sections have been processed.
-#if DEPRECATED_SECTIONSYNCER_SYNC_REPEAT
+#ifdef DEPRECATED_SECTIONSYNCER_SYNC_REPEAT
   [[deprecated("see HISTORY, version 2.5.2")]]
   void Repeat(void);
   [[deprecated("see HISTORY, version 2.5.2")]]
diff --git a/player.c b/player.c
index 447f684a..4ba5d45a 100644
--- a/player.c
+++ b/player.c
@@ -70,7 +70,7 @@ cString cControl::GetHeader(void)
   return "";
 }
 
-#if DEPRECATED_CCONTROL
+#ifdef DEPRECATED_CCONTROL
 cControl *cControl::Control(bool Hidden)
 {
   cMutexLock MutexLock(&mutex);
diff --git a/player.h b/player.h
index 882da7c7..ce767167 100644
--- a/player.h
+++ b/player.h
@@ -117,7 +117,7 @@ public:
   static void Launch(cControl *Control);
   static void Attach(void);
   static void Shutdown(void);
-#if DEPRECATED_CCONTROL
+#ifdef DEPRECATED_CCONTROL
   [[deprecated("see HISTORY, version 2.4.2")]]
   static cControl *Control(bool Hidden = false);
          ///< Old version of this function, for backwards compatibility with plugins.
-- 
2.47.0.windows.1

