diff --git a/libcxx/test/support/platform_support.h b/libcxx/test/support/platform_support.h --- a/libcxx/test/support/platform_support.h +++ b/libcxx/test/support/platform_support.h @@ -56,8 +56,10 @@ #include #include #include -#if defined(_WIN32) || defined(__MINGW32__) +#if defined(_WIN32) +# define WIN32_LEAN_AND_MEAN // Reduce overhead of including windows.h # include // _mktemp_s +# include // MAX_PATH, GetTempPath, GetTempFileName #else # include // close #endif