From 3bc0ecf28c97a5891a9f2cfb371c41505640beef Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 23 Feb 2023 10:30:35 -0700 Subject: [PATCH] [wasm-api] Add ref_t --- src/hb-wasm-api.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 */