clap

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

commit fe3761b83d3f83bc4b39ee7f521382e3b2ef6970
parent 9a4048f3c0ca71f211b07c2659f6eda3f838afc3
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Thu,  5 May 2022 17:20:19 +0200

Update version to fix compilation with vs2019

Diffstat:
Minclude/clap/version.h | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/clap/version.h b/include/clap/version.h @@ -23,8 +23,9 @@ typedef struct clap_version { #define CLAP_VERSION_MAJOR ((uint32_t)0) #define CLAP_VERSION_MINOR ((uint32_t)25) #define CLAP_VERSION_REVISION ((uint32_t)0) -#define CLAP_VERSION \ - ((clap_version_t){CLAP_VERSION_MAJOR, CLAP_VERSION_MINOR, CLAP_VERSION_REVISION}) +#define CLAP_VERSION_INIT {CLAP_VERSION_MAJOR, CLAP_VERSION_MINOR, CLAP_VERSION_REVISION} + +static const CLAP_CONSTEXPR clap_version_t CLAP_VERSION = CLAP_VERSION_INIT; // For version 0, we require the same minor version because // we may still break the ABI at this point