Skip to content

Commit

Permalink
Tntnet30: include <cxxtools/log.h> before all vdr includes
Browse files Browse the repository at this point in the history
  • Loading branch information
kfb77 committed Feb 16, 2021
1 parent 771bc5c commit e901937
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 0 deletions.
4 changes: 4 additions & 0 deletions epg_events.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#include <string>
#include <list>

#if TNTVERSION >= 30000
#include <cxxtools/log.h> // must be loaded before any vdr include because of duplicate macros (LOG_ERROR, LOG_DEBUG, LOG_INFO)
#endif

#include <vdr/channels.h>
#include <vdr/epg.h>
#include <vdr/recording.h>
Expand Down
4 changes: 4 additions & 0 deletions epgsearch.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
#include <string>
#include <algorithm>

#if TNTVERSION >= 30000
#include <cxxtools/log.h> // must be loaded before any vdr include because of duplicate macros (LOG_ERROR, LOG_DEBUG, LOG_INFO)
#endif

#include <vdr/channels.h>
#include <vdr/epg.h>

Expand Down
4 changes: 4 additions & 0 deletions live.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
// STL headers need to be before VDR tools.h (included by <vdr/plugin.h>)
#include <string>

#if TNTVERSION >= 30000
#include <cxxtools/log.h> // must be loaded before any vdr include because of duplicate macros (LOG_ERROR, LOG_DEBUG, LOG_INFO)
#endif

#ifndef __STL_CONFIG_H
// To get rid of the swap definition in vdr/tools.h
# define __STL_CONFIG_H
Expand Down
4 changes: 4 additions & 0 deletions livefeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
// STL headers need to be before VDR tools.h (included by <vdr/channels.h>)
#include <string>

#if TNTVERSION >= 30000
#include <cxxtools/log.h> // must be loaded before any vdr include because of duplicate macros (LOG_ERROR, LOG_DEBUG, LOG_INFO)
#endif

#include <vdr/plugin.h>

namespace vdrlive {
Expand Down
4 changes: 4 additions & 0 deletions recman.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
#include <vector>
#include <list>

#if TNTVERSION >= 30000
#include <cxxtools/log.h> // must be loaded before any vdr include because of duplicate macros (LOG_ERROR, LOG_DEBUG, LOG_INFO)
#endif

#include <vdr/recording.h>

namespace vdrlive {
Expand Down
3 changes: 3 additions & 0 deletions setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
#include <list>
#include <limits>
#include <string>
#if TNTVERSION >= 30000
#include <cxxtools/log.h> // must be loaded before any vdr include because of duplicate macros (LOG_ERROR, LOG_DEBUG, LOG_INFO)
#endif

#include <vdr/menuitems.h>

Expand Down
4 changes: 4 additions & 0 deletions status.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#ifndef VDR_LIVE_STATUS_H
#define VDR_LIVE_STATUS_H

#if TNTVERSION >= 30000
#include <cxxtools/log.h> // must be loaded before any vdr include because of duplicate macros (LOG_ERROR, LOG_DEBUG, LOG_INFO)
#endif

#include <vdr/status.h>

namespace vdrlive {
Expand Down
4 changes: 4 additions & 0 deletions tasks.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#include <string>
#include <vector>

#if TNTVERSION >= 30000
#include <cxxtools/log.h> // must be loaded before any vdr include because of duplicate macros (LOG_ERROR, LOG_DEBUG, LOG_INFO)
#endif

#include <vdr/channels.h>
#include <vdr/thread.h>

Expand Down
4 changes: 4 additions & 0 deletions timers.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#include <list>
#include <string>

#if TNTVERSION >= 30000
#include <cxxtools/log.h> // must be loaded before any vdr include because of duplicate macros (LOG_ERROR, LOG_DEBUG, LOG_INFO)
#endif

#include <vdr/timers.h>

namespace vdrlive {
Expand Down
4 changes: 4 additions & 0 deletions tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#include <stdexcept>
#include <vector>

#if TNTVERSION >= 30000
#include <cxxtools/log.h> // must be loaded before any vdr include because of duplicate macros (LOG_ERROR, LOG_DEBUG, LOG_INFO)
#endif

#ifndef __STL_CONFIG_H
// To get rid of the swap definition in vdr/tools.h
# define __STL_CONFIG_H
Expand Down
4 changes: 4 additions & 0 deletions users.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
// STL headers need to be before VDR tools.h (included by <vdr/channels.h>)
#include <string>

#if TNTVERSION >= 30000
#include <cxxtools/log.h> // must be loaded before any vdr include because of duplicate macros (LOG_ERROR, LOG_DEBUG, LOG_INFO)
#endif

#include <vdr/tools.h>
#include <vdr/config.h>

Expand Down

0 comments on commit e901937

Please sign in to comment.