diff --git a/Sources/_FoundationCShims/include/_CStdlib.h b/Sources/_FoundationCShims/include/_CStdlib.h index 408a92404..f462ba186 100644 --- a/Sources/_FoundationCShims/include/_CStdlib.h +++ b/Sources/_FoundationCShims/include/_CStdlib.h @@ -101,10 +101,6 @@ #include #endif -#if __has_include() -#include -#endif - #if __has_include() #include #endif @@ -164,5 +160,10 @@ #endif +// Must be last to avoid conflicts with other headers on Windows. +#if __has_include() +#include +#endif + #endif // FOUNDATION_CSTDLIB