Fix vendored dav1d stdatomic.h on recent MSVC (guard __has_include_next) (#166)

This commit is contained in:
Sean Fausett
2026-10-19 14:35:47 +13:00
committed by GitHub
parent 6d60464eb2
commit 34cb73bf7e

View File

@@ -32,6 +32,10 @@
#pragma warning(push)
#pragma warning(disable:4067) /* newline for __has_include_next */
#ifndef __has_include_next
#define __has_include_next(x) 0
#endif
#if defined(__clang__) && __has_include_next(<stdatomic.h>)
/* use the clang stdatomic.h with clang-cl*/
# include_next <stdatomic.h>