Commit Graph

3 Commits

Author SHA1 Message Date
Björn Svensson 93f00153c5 Use GNUC atomics from GCC 4.9
GCC began to offer full support for the C11 standard starting with version 4.9,
including support for the _Atomic keyword.

https://gcc.gnu.org/gcc-4.9/changes.html
2024-05-24 11:58:04 +02:00
Björn Svensson b7c024b1ab Fix issue in Freebsd when building with GCC 14.1.0
Since GCC 14 now implements `__has_extension()` the build started to use
Clang atomics, i.e. the `__c11_*` APIs only provided by Clang.

Fix build to use GNUC atomics and include the upstream patch:
  https://reviews.freebsd.org/D16585
which enables C11 atomics when building with GCC >= 4.7.
2024-05-13 01:26:52 +02:00
logwang a9643ea85c init 2017-04-21 18:43:26 +08:00