Skip to content

Commit 8533dd9

Browse files
committed
macro comment
1 parent 8c1cf88 commit 8533dd9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libbson/src/bson/bson-atomic.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ enum bson_memory_order {
5454
#undef BSON_USE_LEGACY_GCC_ATOMICS
5555
#endif
5656

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. */
5762
#ifdef BSON_USE_LEGACY_GCC_ATOMICS
5863
#undef BSON_IF_GNU_LIKE
5964
#define BSON_IF_GNU_LIKE(...)

0 commit comments

Comments
 (0)