diff --git a/src/hb-wasm-api.h b/src/hb-wasm-api.h index fa703be88..59228f977 100644 --- a/src/hb-wasm-api.h +++ b/src/hb-wasm-api.h @@ -59,9 +59,12 @@ HB_WASM_BEGIN_DECLS #ifndef bool_t #define bool_t uint32_t #endif -typedef uint32_t face_t; -typedef uint32_t font_t; -typedef uint32_t buffer_t; +#ifndef ref_t +#define ref_t uint32_t +#endif +typedef ref_t face_t; +typedef ref_t font_t; +typedef ref_t buffer_t; /* font */