We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c1cf88 commit 8533dd9Copy full SHA for 8533dd9
src/libbson/src/bson/bson-atomic.h
@@ -54,6 +54,11 @@ enum bson_memory_order {
54
#undef BSON_USE_LEGACY_GCC_ATOMICS
55
#endif
56
57
+/* Not all GCC-like compilers support the current __atomic built-ins. Older
58
+ * GCC (pre-4.9) used different built-ins named with the __sync prefix. When
59
+ * compiling with such older GCC versions, it is necessary to use the applicable
60
+ * functions, which requires redefining BSON_IF_GNU_LIKE and defining the
61
+ * additional BSON_IF_GNU_LEGACY_ATOMICS macro here. */
62
#ifdef BSON_USE_LEGACY_GCC_ATOMICS
63
#undef BSON_IF_GNU_LIKE
64
#define BSON_IF_GNU_LIKE(...)
0 commit comments