1 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
2 | // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial |
3 | |
4 | #pragma once |
5 | |
6 | #include <cstdint> |
7 | |
8 | #if UINTPTR_MAX == 0xFFFFFFFF |
9 | # define SLINT_TARGET_32 |
10 | #elif UINTPTR_MAX == 0xFFFFFFFFFFFFFFFFu |
11 | # define SLINT_TARGET_64 |
12 | #endif |
13 | |
14 | #if !defined(DOXYGEN) |
15 | # if defined(_MSC_VER) |
16 | # define SLINT_DLL_IMPORT __declspec(dllimport) |
17 | # elif defined(__GNUC__) |
18 | # if defined(_WIN32) || defined(_WIN64) |
19 | # define SLINT_DLL_IMPORT __declspec(dllimport) |
20 | # else |
21 | # define SLINT_DLL_IMPORT __attribute__((visibility("default"))) |
22 | # endif |
23 | # else |
24 | # define SLINT_DLL_IMPORT |
25 | # endif |
26 | #endif // !defined(DOXYGEN) |
27 | |