Allow implementing atomic and mutex ops in config

Motivated by
https://github.com/behdad/harfbuzz/pull/92
This commit is contained in:
Behdad Esfahbod 2015-04-08 12:49:38 -07:00
parent 3fe4e92bc5
commit 45a8b46f47
2 changed files with 11 additions and 2 deletions

View File

@ -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__))

View File

@ -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__))