From e39babe1c9644c51341d6e8d1b689b9b76449181 Mon Sep 17 00:00:00 2001 From: YR Chen Date: Wed, 9 Aug 2023 17:32:07 +0800 Subject: [PATCH] Fix building `LibcShims.cpp` with MSVC v14.37 `_swift_stdlib_configure_console_mode` reverts console codepage on Windows using `atexit`, which is declared in `stdlib.h`. Add the missing `#include ` to unblock building Swift `stdlib` with MSVC v14.37 (Visual Studio 17.7). --- stdlib/public/stubs/LibcShims.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/public/stubs/LibcShims.cpp b/stdlib/public/stubs/LibcShims.cpp index 4c6e29e2a64b3..0e13e2c85b71e 100644 --- a/stdlib/public/stubs/LibcShims.cpp +++ b/stdlib/public/stubs/LibcShims.cpp @@ -17,6 +17,7 @@ #if defined(_WIN32) && !defined(__CYGWIN__) #include +#include #define WIN32_LEAN_AND_MEAN #include #endif