Allow implementing atomic and mutex ops in config

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

No files matched your search

+5 -1
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__))
+6 -1
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__))