From 1f493261d16be3d984fe8a689f5113dafb6eaaa7 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Mon, 19 Jan 2026 12:45:58 +0000 Subject: win32: mkdtemp is available in mingw-w64 14.0.0 mingw-w64 has introduced an implementation of mkdtemp() for its 14.0.0 release. Use this in preference to the internal code, where available. (GitHub issue #555) --- include/platform.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/platform.h b/include/platform.h index 0db8bf345..793639f1c 100644 --- a/include/platform.h +++ b/include/platform.h @@ -472,7 +472,9 @@ typedef unsigned smalluint; # undef HAVE_DPRINTF # undef HAVE_GETLINE # undef HAVE_MEMRCHR +# if !defined(__MINGW64_VERSION_MAJOR) || __MINGW64_VERSION_MAJOR < 14 # undef HAVE_MKDTEMP +# endif # undef HAVE_SETBIT # undef HAVE_STPCPY # undef HAVE_STPNCPY -- cgit v1.2.3-55-g6feb