We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d6e7ab commit dc636fbCopy full SHA for dc636fb
src/aws-cpp-sdk-core/source/platform/windows/FileSystem.cpp
@@ -317,6 +317,11 @@ Aws::String CreateTempFilePath()
317
// Definition from the MSVC stdio.h
318
#define L_tmpnam_s (sizeof("\\") + 16)
319
#endif
320
+
321
+#ifdef __MINGW64_VERSION_MAJOR < 12
322
+ #undef L_tmpnam_s
323
+ #define L_tmpnam_s 260
324
+#endif
325
char s_tempName[L_tmpnam_s+1];
326
327
/*
@@ -328,7 +333,7 @@ Aws::String CreateTempFilePath()
328
333
for more details.
329
334
*/
330
335
331
-#if _MSC_VER >= 1900
336
+#if _MSC_VER >= 1900 || defined(_UCRT)
332
337
tmpnam_s(s_tempName, L_tmpnam_s);
338
#else
339
s_tempName[0] = '.';
0 commit comments