1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
3 | |
4 | #ifndef QMAKE_GLOBAL_H |
5 | #define QMAKE_GLOBAL_H |
6 | |
7 | #include <qglobal.h> |
8 | |
9 | #if defined(QMAKE_AS_LIBRARY) |
10 | # if defined(QMAKE_LIBRARY) |
11 | # define QMAKE_EXPORT Q_DECL_EXPORT |
12 | # else |
13 | # define QMAKE_EXPORT Q_DECL_IMPORT |
14 | # endif |
15 | #else |
16 | # define QMAKE_EXPORT |
17 | #endif |
18 | |
19 | // Be fast even for debug builds |
20 | // MinGW GCC 4.5+ has a problem with always_inline putTok and putBlockLen |
21 | #if defined(__GNUC__) && !(defined(__MINGW32__) && __GNUC__ == 4 && __GNUC_MINOR__ >= 5) |
22 | # define ALWAYS_INLINE inline __attribute__((always_inline)) |
23 | #elif defined(_MSC_VER) |
24 | # define ALWAYS_INLINE __forceinline |
25 | #else |
26 | # define ALWAYS_INLINE inline |
27 | #endif |
28 | |
29 | #ifdef PROEVALUATOR_FULL |
30 | # define PROEVALUATOR_DEBUG |
31 | #endif |
32 | |
33 | #endif |
34 | |