Define a CLAP_ABI macro for calling conventions
This is set to `__stdcall` on Windows to make sure x86 plugins use the
correct calling convention, and it uses the system's standard calling
convention elsewhere. It can also be explicitly overridden by defining
the `CLAP_ABI` macro before including any CLAP code.
# endif
#endif
+#if !defined(CLAP_ABI)
+# if defined _WIN32 || defined __CYGWIN__
+# define CLAP_ABI __cdecl
+# else
+# define CLAP_ABI
+# endif
+#endif
+
#if defined(__cplusplus) && __cplusplus >= 201103L
# define CLAP_HAS_CXX11
# define CLAP_CONSTEXPR constexpr
