From 0eadc2538ef6592690ee5cfee01c2052cc5691ae Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Fri, 23 Jan 2026 06:53:36 +0100 Subject: [PATCH] meson: get the full mingw-w64 string directly This string has been there since mingw-w64 v4 [^1]. [^1]: https://github.com/mingw-w64/mingw-w64/commit/0695eeb4b050e78393dfe30fce358935c7cb7b66 --- meson.build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 5596632983..2589750f30 100644 --- a/meson.build +++ b/meson.build @@ -401,10 +401,9 @@ windows_version_test = ''' have_mingw = true - mingw_version_minor = cc.get_define('__MINGW64_VERSION_MINOR', + mingw_version = cc.get_define('__MINGW64_VERSION_STR', prefix: '#include <_mingw.h>') - mingw_version = '@0@.@1@'.format(mingw_version_major, mingw_version_minor) message('Using MinGW-w64 ' + mingw_version) # Defines needed for MinGW