From c8170c338876cbf97d6a3de47b9c82d8344ea3fe Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 13 Sep 2021 10:14:34 -0400 Subject: [PATCH] fix mingw 32-bit vs 64-bit craziness --- src/info.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/info.cpp b/src/info.cpp index b598d59fd6..69beb15dd8 100644 --- a/src/info.cpp +++ b/src/info.cpp @@ -1348,8 +1348,8 @@ std::string Info::get_compiler_info() buf = fmt::format("MinGW-w64 64bit {}.{} / GNU C++ {}", __MINGW64_VERSION_MAJOR, __MINGW64_VERSION_MINOR, __VERSION__); #elif defined(__MINGW32__) - buf = fmt::format("MinGW-w64 32bit {}.{} / GNU C++ {}", __MINGW32_VERSION_MAJOR, - __MINGW32_VERSION_MINOR, __VERSION__); + buf = fmt::format("MinGW-w64 32bit {}.{} / GNU C++ {}", __MINGW32_MAJOR_VERSION, + __MINGW32_MINOR_VERSION, __VERSION__); #elif defined(__GNUC__) buf = fmt::format("GNU C++ {}", __VERSION__); #elif defined(_MSC_VER) && (_MSC_VER > 1920) && (_MSC_VER < 2000)