mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 15:29:42 +01:00
Add wrapper header for (tr/)functional
This commit is contained in:
parent
02613b0ca9
commit
79eab29e34
@ -23,14 +23,7 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "DllMacro.h"
|
||||
|
||||
#if defined(_WEBSOCKETPP_CPP11_STL_) || defined(CXX_STD_FUNCTIONAL)
|
||||
#include <functional>
|
||||
using std::function;
|
||||
#else
|
||||
#include <tr1/functional>
|
||||
using std::tr1::function;
|
||||
#endif
|
||||
#include "utils/tr1-functional.h"
|
||||
|
||||
#include <QMetaMethod>
|
||||
#include <QObject>
|
||||
|
30
src/libtomahawk/utils/tr1-functional.h
Normal file
30
src/libtomahawk/utils/tr1-functional.h
Normal file
@ -0,0 +1,30 @@
|
||||
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
||||
*
|
||||
* Copyright 2014, Uwe L. Korn <uwelk@xhochy.com>
|
||||
*
|
||||
* 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef TOMAHAWK_TR1_FUNCTIONAL
|
||||
#define TOMAHAWK_TR1_FUNCTIONAL
|
||||
|
||||
#if defined(_WEBSOCKETPP_CPP11_STL_) || defined(CXX_STD_FUNCTIONAL)
|
||||
#include <functional>
|
||||
using std::function;
|
||||
#else
|
||||
#include <tr1/functional>
|
||||
using std::tr1::function;
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user