From 67f295bb8456b52a6d6ba0eb1b74392188ef0540 Mon Sep 17 00:00:00 2001 From: Thibault Charbonnier Date: Wed, 1 Nov 2023 09:49:47 -0700 Subject: [PATCH] misc(wrt) add Wasmtime version checks --- src/wasm/wrt/ngx_wrt.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wasm/wrt/ngx_wrt.h b/src/wasm/wrt/ngx_wrt.h index 6869df54d..031fe22ab 100644 --- a/src/wasm/wrt/ngx_wrt.h +++ b/src/wasm/wrt/ngx_wrt.h @@ -61,6 +61,11 @@ typedef enum { #include #include +#if WASMTIME_VERSION_MAJOR != 14 +# error Unsupported Wasmtime version +#elif WASMTIME_VERSION_MINOR > 0 +# warning Untested Wasmtime version +#endif typedef wasmtime_error_t ngx_wrt_res_t;