Importc: FreeBSD compiles stdatomic.h (#15041)

This commit is contained in:
Walter Bright 2023-03-25 21:49:00 -07:00 committed by GitHub
parent 511036f31e
commit ab62befd47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View file

@ -41,13 +41,11 @@
#ifndef __linux__
#ifndef _MSC_VER
#ifndef __APPLE__ // /Applications/Xcode-14.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0/include/stdatomic.h(80): Error: type-specifier is missing
#ifndef __FreeBSD__ // /stdatomic.h(162): Error: found `volatile` when expecting `{`
#include <stdatomic.h>
#endif
#endif
#endif
#endif
#endif
#include <stdbool.h>
#include <stddef.h>