Skip to content

Commit 32c90cf

Browse files
committed
FileSystem.cpp - Fix MinGW version check to check for definition first
1 parent 0ae7a0d commit 32c90cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aws-cpp-sdk-core/source/platform/windows/FileSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ Aws::String CreateTempFilePath()
318318
#define L_tmpnam_s (sizeof("\\") + 16)
319319
#endif
320320

321-
#ifdef __MINGW64_VERSION_MAJOR < 12
321+
#if defined(__MINGW64_VERSION_MAJOR) && __MINGW64_VERSION_MAJOR < 12
322322
#undef L_tmpnam_s
323323
#define L_tmpnam_s 260
324324
#endif

0 commit comments

Comments
 (0)