Add stdatomic fallback for GCC 4.7/4.8
This compiler version is still shipped with the latest version of some distros, like RHEL/CentOS, sadly. This implementation requires on the __atomic
functions.
A few points:
- I'm sure it could be integrated with meson better, but this is my first time poking a meson build system.
- I've tested it with
meson test
, and all 64 tests passed when build with this fallback, but who knows how representative this is of the real world. - I'm not too thrilled with adding
include/compat/gcc
, so comments welcome.