|
19 | 19 |
|
20 | 20 | #if defined(_MSC_VER) and not defined(__clang__)
|
21 | 21 | #pragma warning(disable: 4251)
|
22 |
| - #define STORMKIT_COMPILER_MSVC "MSVC " + std::to_string(_MSC_VER) |
23 |
| - #define STORMKIT_COMPILER STORMKIT_COMPILER_MSVC |
24 |
| - #define STORMKIT_EXPORT __declspec(dllexport) |
25 |
| - #define STORMKIT_IMPORT __declspec(dllimport) |
26 |
| - #define STORMKIT_RESTRICT __restrict |
| 22 | + #define STORMKIT_COMPILER_MSSTL "MSSTL" |
| 23 | + #define STORMKIT_COMPILER_CXXLIB STORMKIT_COMPILER_MSSTL |
| 24 | + #define STORMKIT_COMPILER_MSVC "MSVC " + std::to_string(_MSC_VER) |
| 25 | + #define STORMKIT_COMPILER STORMKIT_COMPILER_MSVC |
| 26 | + #define STORMKIT_EXPORT __declspec(dllexport) |
| 27 | + #define STORMKIT_IMPORT __declspec(dllimport) |
| 28 | + #define STORMKIT_RESTRICT __restrict |
27 | 29 | #define STORMKIT_PRIVATE
|
28 | 30 | #define STORMKIT_FORCE_INLINE_IMPL __forceinline
|
29 | 31 | #elif defined(_MSC_VER) and defined(__clang__)
|
| 32 | + #if defined(_LIBCPP_VERSION) |
| 33 | + #define STORMKIT_COMPILER_LIBCPP "libc++" |
| 34 | + #define STORMKIT_COMPILER_CXXLIB STORMKIT_COMPILER_LIBCPP |
| 35 | + #else |
| 36 | + #define STORMKIT_COMPILER_MSSTL "MSSTL" |
| 37 | + #define STORMKIT_COMPILER_CXXLIB STORMKIT_COMPILER_MSSTL |
| 38 | + #endif |
30 | 39 | #define STORMKIT_EXPORT __declspec(dllexport)
|
31 | 40 | #define STORMKIT_IMPORT __declspec(dllimport)
|
32 | 41 | #define STORMKIT_PRIVATE [[gnu::visibility("hidden")]]
|
33 | 42 | #define STORMKIT_RESTRICT __restrict
|
34 | 43 | #define STORMKIT_FORCE_INLINE_IMPL [[gnu::always_inline]] inline
|
35 | 44 | #elif defined(__MINGW32__)
|
| 45 | + #if defined(_LIBCPP_VERSION) |
| 46 | + #define STORMKIT_COMPILER_LIBCPP "libc++" |
| 47 | + #define STORMKIT_COMPILER_CXXLIB STORMKIT_COMPILER_LIBCPP |
| 48 | + #else |
| 49 | + #define STORMKIT_COMPILER_LIBSTDCPP "libstdc++" |
| 50 | + #define STORMKIT_COMPILER_CXXLIB STORMKIT_COMPILER_LIBSTDCPP |
| 51 | + #endif |
36 | 52 | #define STORMKIT_EXPORT __declspec(dllexport)
|
37 | 53 | #define STORMKIT_IMPORT __declspec(dllimport)
|
38 | 54 | #define STORMKIT_PRIVATE
|
39 | 55 | #define STORMKIT_RESTRICT __restrict inline
|
40 | 56 | #define STORMKIT_FORCE_INLINE_IMPL [[gnu::always_inline]] inline
|
41 | 57 | #else
|
| 58 | + #if defined(_LIBCPP_VERSION) |
| 59 | + #define STORMKIT_COMPILER_LIBCPP "libc++" |
| 60 | + #define STORMKIT_COMPILER_CXXLIB STORMKIT_COMPILER_LIBCPP |
| 61 | + #else |
| 62 | + #define STORMKIT_COMPILER_LIBSTDCPP "libstdc++" |
| 63 | + #define STORMKIT_COMPILER_CXXLIB STORMKIT_COMPILER_LIBSTDCPP |
| 64 | + #endif |
42 | 65 | #define STORMKIT_IMPORT [[gnu::visibility("default")]]
|
43 | 66 | #define STORMKIT_EXPORT [[gnu::visibility("default")]]
|
44 | 67 | #define STORMKIT_PRIVATE [[gnu::visibility("hidden")]]
|
|
0 commit comments