clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit e661d1caa56deac3dc207af2445738b93e84e5a0
parent d23d576a9d96f23c58b529d803053333ac127918
Author: Jatin Chowdhury <jatinchowdhury18@gmail.com>
Date:   Mon, 10 Jul 2023 14:32:16 -0700

Different strategy for definitions check

Diffstat:
Minclude/clap/private/macros.h | 10++++------
1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/include/clap/private/macros.h b/include/clap/private/macros.h @@ -25,12 +25,10 @@ # endif #endif -#if defined(__cplusplus) -# if MSVC -# define CLAP_CPLUSPLUS _MSVC_LANG -# else -# define CLAP_CPLUSPLUS __cplusplus -# endif +#if defined(_MSVC_LANG) +# define CLAP_CPLUSPLUS _MSVC_LANG +#elif defined(__cplusplus) +# define CLAP_CPLUSPLUS __cplusplus #endif #if defined(CLAP_CPLUSPLUS) && CLAP_CPLUSPLUS >= 201103L