Fix compilation with vs2019
@@ -23,8 +23,9 @@ typedef struct clap_version {
#define CLAP_VERSION_MAJOR ((uint32_t)0)
#define CLAP_VERSION_MINOR ((uint32_t)24)
#define CLAP_VERSION_REVISION ((uint32_t)1)
-#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
