aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpyside/pysidemacros.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/libpyside/pysidemacros.h')
-rw-r--r--sources/pyside6/libpyside/pysidemacros.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/sources/pyside6/libpyside/pysidemacros.h b/sources/pyside6/libpyside/pysidemacros.h
new file mode 100644
index 000000000..46f64b4ed
--- /dev/null
+++ b/sources/pyside6/libpyside/pysidemacros.h
@@ -0,0 +1,18 @@
+// Copyright (C) 2020 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+
+#ifndef PYSIDEMACROS_H
+#define PYSIDEMACROS_H
+
+#include <shibokenmacros.h>
+
+#define PYSIDE_EXPORT LIBSHIBOKEN_EXPORT
+#define PYSIDE_IMPORT LIBSHIBOKEN_IMPORT
+
+#ifdef BUILD_LIBPYSIDE
+# define PYSIDE_API PYSIDE_EXPORT
+#else
+# define PYSIDE_API PYSIDE_IMPORT
+#endif
+
+#endif // PYSIDEMACROS_H