swift
swiftmiscexport.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_MISC_SWIFT_MISCEXPORT_H
7 #define SWIFT_MISC_SWIFT_MISCEXPORT_H
8 
9 #include <QtGlobal>
10 
15 #ifndef WITH_STATIC
16 # if defined(BUILD_SWIFT_MISC_LIB)
17 # define SWIFT_MISC_EXPORT Q_DECL_EXPORT
18 # else
19 # define SWIFT_MISC_EXPORT Q_DECL_IMPORT
20 # endif
21 #else
22 # define SWIFT_MISC_EXPORT
23 #endif
24 
29 #if defined(Q_OS_WIN) && defined(Q_CC_GNU)
30 # define SWIFT_MISC_EXPORT_DECLARE_TEMPLATE SWIFT_MISC_EXPORT
31 #else
32 # define SWIFT_MISC_EXPORT_DECLARE_TEMPLATE
33 #endif
34 
39 #ifdef Q_CC_MSVC
40 # define SWIFT_NO_INLINE __declspec(noinline)
41 #else
42 # define SWIFT_NO_INLINE __attribute__((noinline))
43 #endif
44 
45 #endif // SWIFT_MISC_SWIFT_MISCEXPORT_H