Add HB_NO_OPTIONS
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
This commit is contained in:
parent
079d2dcbb2
commit
2f4be4ba54
|
@ -63,6 +63,9 @@ extern HB_INTERNAL hb_atomic_int_t _hb_options;
|
||||||
static inline hb_options_t
|
static inline hb_options_t
|
||||||
hb_options ()
|
hb_options ()
|
||||||
{
|
{
|
||||||
|
#if defined(HB_NO_OPTIONS)
|
||||||
|
return hb_options_t ();
|
||||||
|
#endif
|
||||||
/* Make a local copy, so we can access bitfield threadsafely. */
|
/* Make a local copy, so we can access bitfield threadsafely. */
|
||||||
hb_options_union_t u;
|
hb_options_union_t u;
|
||||||
u.i = _hb_options.get_relaxed ();
|
u.i = _hb_options.get_relaxed ();
|
||||||
|
|
Loading…
Reference in New Issue