aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmldom/qqmldom_global.h
blob: e0d343ab447c6e8e6c565cb725e53c0269966031 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#ifndef QMLDOM_GLOBAL_H
#define QMLDOM_GLOBAL_H

#include <QtCore/qglobal.h>

#if defined(QMLDOM_DYNAMIC)
#if defined(QMLDOM_LIBRARY)
#  define QMLDOM_EXPORT Q_DECL_EXPORT
#else
#  define QMLDOM_EXPORT Q_DECL_IMPORT
#endif
#else
#  define QMLDOM_EXPORT
#endif

QT_BEGIN_NAMESPACE
// avoid annoying warning about missing QT_BEGIN_NAMESPACE...
QT_END_NAMESPACE

#endif // QMLDOM_GLOBAL_H