| Index: third_party/harfbuzz-ng/src/hb-mutex-private.hh
|
| diff --git a/third_party/harfbuzz-ng/src/hb-mutex-private.hh b/third_party/harfbuzz-ng/src/hb-mutex-private.hh
|
| index 6281201958522f1cbf963c023172cd88a0f94dd4..a8ea39ccfd999cf5d7cdac41016f481138c169cb 100644
|
| --- a/third_party/harfbuzz-ng/src/hb-mutex-private.hh
|
| +++ b/third_party/harfbuzz-ng/src/hb-mutex-private.hh
|
| @@ -47,7 +47,11 @@
|
| #include <windows.h>
|
| typedef CRITICAL_SECTION hb_mutex_impl_t;
|
| #define HB_MUTEX_IMPL_INIT {0}
|
| +#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY==WINAPI_FAMILY_PC_APP || WINAPI_FAMILY==WINAPI_FAMILY_PHONE_APP)
|
| +#define hb_mutex_impl_init(M) InitializeCriticalSectionEx (M, 0, 0)
|
| +#else
|
| #define hb_mutex_impl_init(M) InitializeCriticalSection (M)
|
| +#endif
|
| #define hb_mutex_impl_lock(M) EnterCriticalSection (M)
|
| #define hb_mutex_impl_unlock(M) LeaveCriticalSection (M)
|
| #define hb_mutex_impl_finish(M) DeleteCriticalSection (M)
|
|
|