[wasm] Make _hb_wasm_module_reader conditional

Or else uharfbuzz doesn't build.
This commit is contained in:
Simon Cozens 2023-03-26 17:44:55 +01:00 committed by Behdad Esfahbod
parent 3fc48d4ada
commit 0bfad127c3
1 changed files with 5 additions and 1 deletions

View File

@ -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