libQuotient
A Qt library for building matrix clients
Loading...
Searching...
No Matches
quotient_export.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2021 Kitsune Ral <kitsune-ral@users.sf.net>
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include <QtCore/qglobal.h>
7
8#ifdef QUOTIENT_STATIC
9 #define QUOTIENT_API
10 #define QUOTIENT_HIDDEN
11#else
12 #ifndef QUOTIENT_API
13 #ifdef BUILDING_SHARED_QUOTIENT // Building this library
14 #ifdef Q_OS_WIN
15 #define QUOTIENT_API Q_DECL_EXPORT
16 #else
17 // On non-Windows, Q_DECL_EXPORT can apply protected visibility and the current
18 // code for event types is incompatible with it (see #692).
19 #define QUOTIENT_API __attribute__((visibility("default")))
20 #endif
21 #else // Using this library
22 #define QUOTIENT_API Q_DECL_IMPORT
23 #endif
24 #endif
25
26 #ifndef QUOTIENT_HIDDEN
27 #define QUOTIENT_HIDDEN Q_DECL_HIDDEN
28 #endif
29#endif