From 63518625dafbc43095903f24ced7179bee0dbf47 Mon Sep 17 00:00:00 2001 From: Juan Jose Santamaria Flecha Date: Tue, 15 Nov 2022 09:05:19 -0500 Subject: [PATCH] meson define HAVE_LOCALE_T for MinGW Add manual override to define HAVE_LOCALE_T, HAVE_WCSTOMBS_L and HAVE_MBSTOWCS_L on MinGW. --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 0583820..259240f 100644 --- a/meson.build +++ b/meson.build @@ -2200,7 +2200,7 @@ if cc.has_type('locale_t', prefix: '#include ') elif cc.has_type('locale_t', prefix: '#include ') cdata.set('HAVE_LOCALE_T', 1) cdata.set('LOCALE_T_IN_XLOCALE', 1) -elif cc.get_id() == 'msvc' +elif host_system == 'windows' cdata.set('HAVE_LOCALE_T', 1) endif @@ -2415,7 +2415,7 @@ endif # MSVC has replacements defined in src/include/port/win32_port.h. -if cc.get_id() == 'msvc' +if host_system == 'windows' cdata.set('HAVE_WCSTOMBS_L', 1) cdata.set('HAVE_MBSTOWCS_L', 1) endif -- 2.11.0