fix include ordering in atomic.c on macOS (case-insensitive filesystem)

This commit is contained in:
Gareth Potter committed 2026-10-16 10:24:22 +01:00
1 parent 91b5d69b5d
commit bb3e2ef709
1 file changed
+3 -1
+3 -1
View File
@@ -39,10 +39,12 @@
* symbols are attached with asm labels.
*/
/* string.h first: on case-insensitive file systems it can pull in Apple's
Strings.h -> MacTypes.h, whose true/false enum clashes with stdbool.h. */
#include <string.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#ifndef __GCC_ATOMIC_TEST_AND_SET_TRUEVAL
#define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1