diff --git a/src/libtomahawk/utils/Closure.h b/src/libtomahawk/utils/Closure.h index 37aeb892f..14a75c753 100644 --- a/src/libtomahawk/utils/Closure.h +++ b/src/libtomahawk/utils/Closure.h @@ -23,14 +23,7 @@ #include "config.h" #include "DllMacro.h" - -#if defined(_WEBSOCKETPP_CPP11_STL_) || defined(CXX_STD_FUNCTIONAL) -#include -using std::function; -#else -#include -using std::tr1::function; -#endif +#include "utils/tr1-functional.h" #include #include diff --git a/src/libtomahawk/utils/tr1-functional.h b/src/libtomahawk/utils/tr1-functional.h new file mode 100644 index 000000000..2a1d5aa14 --- /dev/null +++ b/src/libtomahawk/utils/tr1-functional.h @@ -0,0 +1,30 @@ +/* === This file is part of Tomahawk Player - === + * + * Copyright 2014, Uwe L. Korn + * + * Tomahawk is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Tomahawk is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Tomahawk. If not, see . + */ + +#ifndef TOMAHAWK_TR1_FUNCTIONAL +#define TOMAHAWK_TR1_FUNCTIONAL + +#if defined(_WEBSOCKETPP_CPP11_STL_) || defined(CXX_STD_FUNCTIONAL) +#include +using std::function; +#else +#include +using std::tr1::function; +#endif + +#endif