diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-01-02 05:28:24 +0100 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-01-02 05:28:24 +0100 |
commit | d516280a2b38ccb060e4f7502b873e19b1559ed1 (patch) | |
tree | b995becf2cb8d002ac3fa4d68c69a69a8f26fdcc /lib/quotient_export.h | |
parent | 545f9084bacead9f02ba6df609822be4672b7952 (diff) | |
parent | 2dee2bf4f0b2bd6615866644b2df9460da6babbb (diff) | |
download | libquotient-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.h | 23 |
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 |