LMMS
Loading...
Searching...
No Matches
macros.h
Go to the documentation of this file.
1#pragma once
2
3// Define CLAP_EXPORT
4#if !defined(CLAP_EXPORT)
5# if defined _WIN32 || defined __CYGWIN__
6# ifdef __GNUC__
7# define CLAP_EXPORT __attribute__((dllexport))
8# else
9# define CLAP_EXPORT __declspec(dllexport)
10# endif
11# else
12# if __GNUC__ >= 4 || defined(__clang__)
13# define CLAP_EXPORT __attribute__((visibility("default")))
14# else
15# define CLAP_EXPORT
16# endif
17# endif
18#endif
19
20#if !defined(CLAP_ABI)
21# if defined _WIN32 || defined __CYGWIN__
22# define CLAP_ABI __cdecl
23# else
24# define CLAP_ABI
25# endif
26#endif
27
28#if defined(__cplusplus) && __cplusplus >= 201103L
29# define CLAP_HAS_CXX11
30# define CLAP_CONSTEXPR constexpr
31#else
32# define CLAP_CONSTEXPR
33#endif
34
35#if defined(__cplusplus) && __cplusplus >= 201703L
36# define CLAP_HAS_CXX17
37# define CLAP_NODISCARD [[nodiscard]]
38#else
39# define CLAP_NODISCARD
40#endif
41
42#if defined(__cplusplus) && __cplusplus >= 202002L
43# define CLAP_HAS_CXX20
44#endif