diff options
Diffstat (limited to 'examples/widgetbinding/macros.h')
-rw-r--r-- | examples/widgetbinding/macros.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/widgetbinding/macros.h b/examples/widgetbinding/macros.h new file mode 100644 index 000000000..001647966 --- /dev/null +++ b/examples/widgetbinding/macros.h @@ -0,0 +1,16 @@ +// Copyright (C) 2020 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +#ifndef MACROS_H +#define MACROS_H + +#include <QtCore/qglobal.h> + +// Export symbols when creating .dll and .lib, and import them when using .lib. +#if BINDINGS_BUILD +# define BINDINGS_API Q_DECL_EXPORT +#else +# define BINDINGS_API Q_DECL_IMPORT +#endif + +#endif // MACROS_H |