diff options
Diffstat (limited to 'channelcolumn.c')
-rw-r--r-- | channelcolumn.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/channelcolumn.c b/channelcolumn.c index 666b6b5..6a65428 100644 --- a/channelcolumn.c +++ b/channelcolumn.c @@ -5,12 +5,12 @@ cChannelColumn::cChannelColumn(int num, const cChannel *channel, cMyTime *myTime this->channel = channel; this->num = num; this->myTime = myTime; -#if defined (APIVERSNUM) && (APIVERSNUM >= 20301) +#if VDRVERSNUM >= 20301 #else hasTimer = channel->HasTimer(); #endif hasSwitchTimer = SwitchTimers.ChannelInSwitchList(channel); -#if defined (APIVERSNUM) && (APIVERSNUM >= 20301) +#if VDRVERSNUM >= 20301 #else schedulesLock = new cSchedulesLock(false, 100); #endif @@ -21,7 +21,7 @@ cChannelColumn::~cChannelColumn(void) { if (header) delete header; grids.Clear(); -#if defined (APIVERSNUM) && (APIVERSNUM >= 20301) +#if VDRVERSNUM >= 20301 #else delete schedulesLock; #endif @@ -42,7 +42,7 @@ void cChannelColumn::drawHeader() { } bool cChannelColumn::readGrids() { -#if defined (APIVERSNUM) && (APIVERSNUM >= 20301) +#if VDRVERSNUM >= 20301 LOCK_SCHEDULES_READ; const cSchedules* schedules = Schedules; #else @@ -200,7 +200,7 @@ void cChannelColumn::AddNewGridsAtStart() { return; } //if not, i have to add new ones to the list -#if defined (APIVERSNUM) && (APIVERSNUM >= 20301) +#if VDRVERSNUM >= 20301 LOCK_SCHEDULES_READ; const cSchedules* schedules = Schedules; #else @@ -253,7 +253,7 @@ void cChannelColumn::AddNewGridsAtEnd() { return; } //if not, i have to add new ones to the list -#if defined (APIVERSNUM) && (APIVERSNUM >= 20301) +#if VDRVERSNUM >= 20301 LOCK_SCHEDULES_READ; const cSchedules* schedules = Schedules; #else @@ -366,7 +366,7 @@ cGrid *cChannelColumn::addDummyGrid(time_t start, time_t end, cGrid *firstGrid, } void cChannelColumn::SetTimers() { -#if defined (APIVERSNUM) && (APIVERSNUM >= 20301) +#if VDRVERSNUM >= 20301 #else hasTimer = channel->HasTimer(); #endif |