diff --git a/src/eitd/SIlanguage.cpp b/src/eitd/SIlanguage.cpp index 44db9a74d..6cc261251 100644 --- a/src/eitd/SIlanguage.cpp +++ b/src/eitd/SIlanguage.cpp @@ -22,6 +22,10 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include @@ -32,7 +36,7 @@ #include "SIlanguage.hpp" -#define LANGUAGEFILE CONFIGDIR "/epglanguages.conf" +static const char LANGUAGEFILE[] = CONFIGDIR "/epglanguages.conf"; std::vector SIlanguage::languages; pthread_mutex_t SIlanguage::languages_lock = PTHREAD_MUTEX_INITIALIZER; diff --git a/src/eitd/SIlanguage.hpp b/src/eitd/SIlanguage.hpp index 133aec0fc..7f80d3a76 100644 --- a/src/eitd/SIlanguage.hpp +++ b/src/eitd/SIlanguage.hpp @@ -29,8 +29,6 @@ #include -#define LANGUAGEFILE "/var/tuxbox/config/epglanguages.conf" - class SIlanguage { public: static void filter(const std::map& s, int max, std::string& retval);