提交 45a8b46f 编写于 作者: B Behdad Esfahbod

Allow implementing atomic and mutex ops in config

Motivated by
https://github.com/behdad/harfbuzz/pull/92
上级 3fe4e92b
......@@ -39,7 +39,11 @@
/* We need external help for these */
#if 0
#if defined(hb_atomic_int_add) \
&& defined(hb_atomic_ptr_get) \
&& defined(hb_atomic_ptr_cmpexch)
/* Defined externally, i.e. in config.h */
#elif !defined(HB_NO_MT) && (defined(_WIN32) || defined(__CYGWIN__))
......
......@@ -39,7 +39,12 @@
/* We need external help for these */
#if 0
#if defined(hb_mutex_impl_init) \
&& defined(hb_mutex_impl_lock) \
&& defined(hb_mutex_impl_unlock) \
&& defined(hb_mutex_impl_finish)
/* Defined externally, i.e. in config.h */
#elif !defined(HB_NO_MT) && (defined(_WIN32) || defined(__CYGWIN__))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册