[atomic] Comment

This commit is contained in:
Behdad Esfahbod 2020-06-29 10:43:49 -07:00
parent 3528a21e8d
commit a666fe64a9
1 changed files with 3 additions and 1 deletions

View File

@ -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 <windows.h>