QtGStreamer 1.2.0
Loading...
Searching...
No Matches
global.h
1/*
2 Copyright (C) 2011 Collabora Ltd.
3 @author George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
4
5 This library is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published
7 by the Free Software Foundation; either version 2.1 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef QGST_UTILS_GLOBAL_H
19#define QGST_UTILS_GLOBAL_H
20
21// workaround for https://bugreports.qt-project.org/browse/QTBUG-22829
22#if defined(Q_MOC_RUN) && !defined(BOOST_TT_HAS_OPERATOR_HPP_INCLUDED)
23#define BOOST_TT_HAS_OPERATOR_HPP_INCLUDED
24#endif
25
26#include <QtCore/QtGlobal>
27
28/* defined by cmake when building this library */
29#if defined(QtGStreamerUtils_EXPORTS) || defined(Qt5GStreamerUtils_EXPORTS)
30# define QTGSTREAMERUTILS_EXPORT Q_DECL_EXPORT
31#else
32# define QTGSTREAMERUTILS_EXPORT Q_DECL_IMPORT
33#endif
34
35#if !defined(Q_OS_WIN) && !defined(Q_CC_NOKIAX86) && \
36 !defined(Q_CC_RVCT) && defined(QT_VISIBILITY_AVAILABLE)
37# define QTGSTREAMERUTILS_NO_EXPORT __attribute__((visibility("hidden")))
38#else
39# define QTGSTREAMERUTILS_NO_EXPORT
40#endif
41
42#endif