[wasm] Make _hb_wasm_module_reader conditional
Or else uharfbuzz doesn't build.
This commit is contained in:
parent
3fc48d4ada
commit
0bfad127c3
|
@ -58,8 +58,12 @@
|
||||||
#include "hb-wasm-api.hh"
|
#include "hb-wasm-api.hh"
|
||||||
#include "hb-wasm-api-list.hh"
|
#include "hb-wasm-api-list.hh"
|
||||||
|
|
||||||
|
#ifndef HB_WASM_NO_MODULES
|
||||||
#define HB_WASM_NO_MODULES
|
#define HB_WASM_NO_MODULES
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef HB_WASM_NO_MODULES
|
||||||
static bool HB_UNUSED
|
static bool HB_UNUSED
|
||||||
_hb_wasm_module_reader (const char *module_name,
|
_hb_wasm_module_reader (const char *module_name,
|
||||||
uint8_t **p_buffer, uint32_t *p_size)
|
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);
|
hb_free (buffer);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* shaper face data
|
* shaper face data
|
||||||
|
|
Loading…
Reference in New Issue