From 7575fb7af3d31950588e614e0759536ef78337b0 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 8 Sep 2022 14:45:52 +0200 Subject: [PATCH] Ensure CLAP_ABI is set This will avoid some potential issues when people try to build this against old CLAP headers. --- src/wine-host/bridges/clap.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/wine-host/bridges/clap.h b/src/wine-host/bridges/clap.h index f0aa4867..1ffaf6c5 100644 --- a/src/wine-host/bridges/clap.h +++ b/src/wine-host/bridges/clap.h @@ -33,6 +33,12 @@ #include "clap-impls/host-proxy.h" #include "common.h" +// Would be nice to able to do this at build time, but Meson doesn't seem to +// support (subproject) dependencies in build time compiler checks +#ifndef CLAP_ABI +#error The found CLAP dependency does not declare a calling convention on Windows. Building yabridge against these CLAP headers will cause it to malfunction. +#endif + /** * Pointers to all of a CLAP plugin's extension structs. These will be null if * the plugin doesn't support the extensions.