From a666fe64a92206cc51d961be0848455d4fbd2bdd Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 29 Jun 2020 10:43:49 -0700 Subject: [PATCH] [atomic] Comment --- src/hb-atomic.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hb-atomic.hh b/src/hb-atomic.hh index 31c5b2b95..94ae86c6f 100644 --- a/src/hb-atomic.hh +++ b/src/hb-atomic.hh @@ -52,7 +52,7 @@ #elif !defined(HB_NO_MT) && defined(__ATOMIC_ACQUIRE) -/* C++11-style GCC primitives. */ +/* C++11-style GCC primitives. We prefer these as they don't require standard library. */ #define _hb_memory_barrier() __sync_synchronize () @@ -102,6 +102,8 @@ _hb_atomic_ptr_impl_cmplexch (const void **P, const void *O_, const void *N) #elif !defined(HB_NO_MT) && defined(_WIN32) +/* Windows branch still needed because MSVC doesn't correctly define __cplusplus: + * https://github.com/harfbuzz/harfbuzz/pull/2362 */ #include