From 716f2627a59e8cddcdd750da87b7bbcf80cd61cb Mon Sep 17 00:00:00 2001 From: dagargo Date: Wed, 10 Sep 2025 19:19:52 +0200 Subject: [PATCH] Make code C23 compliant --- syro/korg_syro_type.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/syro/korg_syro_type.h b/syro/korg_syro_type.h index aabe734..cde9f56 100644 --- a/syro/korg_syro_type.h +++ b/syro/korg_syro_type.h @@ -30,7 +30,7 @@ typedef long int32_t; #endif // #ifndef _MSC_VER -#ifndef __cplusplus +#if !defined(__cplusplus) && (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 202000) #ifndef bool typedef int bool; #endif @@ -40,7 +40,6 @@ typedef int bool; #ifndef false #define false (0) #endif -#endif // #ifndef __cplusplus +#endif // !defined(__cplusplus) && (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 202000) #endif // #ifndef KORG_SYRO_VOLCASAMPLE_H__ -