aboutsummaryrefslogtreecommitdiff
path: root/lib/quotient_export.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-01-02 05:28:24 +0100
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-01-02 05:28:24 +0100
commitd516280a2b38ccb060e4f7502b873e19b1559ed1 (patch)
treeb995becf2cb8d002ac3fa4d68c69a69a8f26fdcc /lib/quotient_export.h
parent545f9084bacead9f02ba6df609822be4672b7952 (diff)
parent2dee2bf4f0b2bd6615866644b2df9460da6babbb (diff)
downloadlibquotient-d516280a2b38ccb060e4f7502b873e19b1559ed1.tar.gz
libquotient-d516280a2b38ccb060e4f7502b873e19b1559ed1.zip
Manage symbols visibility for dynamic linking
Diffstat (limited to 'lib/quotient_export.h')
-rw-r--r--lib/quotient_export.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/quotient_export.h b/lib/quotient_export.h
new file mode 100644
index 00000000..5a6edb0e
--- /dev/null
+++ b/lib/quotient_export.h
@@ -0,0 +1,23 @@
+// SPDX-FileCopyrightText: 2021 Kitsune Ral <kitsune-ral@users.sf.net>
+// SPDX-License-Identifier: LGPL-2.1-or-later
+
+#pragma once
+
+#ifdef QUOTIENT_STATIC
+# define QUOTIENT_API
+# define QUOTIENT_HIDDEN
+#else
+# ifndef QUOTIENT_API
+# ifdef BUILDING_SHARED_QUOTIENT
+ /* We are building this library */
+# define QUOTIENT_API Q_DECL_EXPORT
+# else
+ /* We are using this library */
+# define QUOTIENT_API Q_DECL_IMPORT
+# endif
+# endif
+
+# ifndef QUOTIENT_HIDDEN
+# define QUOTIENT_HIDDEN Q_DECL_HIDDEN
+# endif
+#endif