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,7 +56,7 @@ #include #include #include -#if defined(_WIN32) || defined(__MINGW32__) +#if defined(_WIN32) # include // _mktemp_s #else # include // close @@ -73,13 +73,7 @@ inline std::string get_temp_file_name() { -#if defined(__MINGW32__) - char Path[MAX_PATH + 1]; - char FN[MAX_PATH + 1]; - do { } while (0 == GetTempPath(MAX_PATH+1, Path)); - do { } while (0 == GetTempFileName(Path, "libcxx", 0, FN)); - return FN; -#elif defined(_WIN32) +#if defined(_WIN32) char Name[] = "libcxx.XXXXXX"; if (_mktemp_s(Name, sizeof(Name)) != 0) abort(); return Name;