Skip to content

Commit b22902c

Browse files
Make it possible to implement the atomics in config.h
For most cases, the GCC/Intel atomics (__sync functions) are fine, but there are some systems for which libgcc is incorrectly built and thus configure reports HAVE_INTEL_ATOMIC_PRIMITIVES even though the Intel atomics aren't really implemented (i.e. QNX 6.5). As of now, it is possible to implement the atomics in config.h and define HB_NO_ATOMIC_IMPL to force HB use *that* implementation.
1 parent aee6850 commit b22902c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/hb-atomic-private.hh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@
4242
#if 0
4343

4444

45+
#elif !defined(HB_NO_MT) && defined(HB_NO_ATOMIC_IMPL)
46+
47+
/* Defined externally, i.e. in config.h */
48+
49+
4550
#elif !defined(HB_NO_MT) && (defined(_WIN32) || defined(__CYGWIN__))
4651

4752
#include <windows.h>

0 commit comments

Comments
 (0)