From 0bfad127c3a907d5c50e59ab61a2beac69853cb1 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Sun, 26 Mar 2023 17:44:55 +0100 Subject: [PATCH] [wasm] Make _hb_wasm_module_reader conditional Or else uharfbuzz doesn't build. --- src/hb-wasm-shape.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/hb-wasm-shape.cc b/src/hb-wasm-shape.cc index 7d584c13e..798a09572 100644 --- a/src/hb-wasm-shape.cc +++ b/src/hb-wasm-shape.cc @@ -58,8 +58,12 @@ #include "hb-wasm-api.hh" #include "hb-wasm-api-list.hh" +#ifndef HB_WASM_NO_MODULES #define HB_WASM_NO_MODULES +#endif + +#ifndef HB_WASM_NO_MODULES static bool HB_UNUSED _hb_wasm_module_reader (const char *module_name, uint8_t **p_buffer, uint32_t *p_size) @@ -91,7 +95,7 @@ _hb_wasm_module_destroyer (uint8_t *buffer, uint32_t size) { hb_free (buffer); } - +#endif /* * shaper face data