From 2ff248f2acd430c3242064a818ed28a00088fc04 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Tue, 31 Dec 2024 11:13:48 +0100 Subject: [PATCH] [meson] Shorter --- meson.build | 2 +- src/mime/backend/meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 4b4083318..7ad055eeb 100644 --- a/meson.build +++ b/meson.build @@ -1132,7 +1132,7 @@ if compiler.compiles('int a; typeof(a) b;', name: 'typeof') conf_data.set('HAVE_TYPEOF', 1) endif -if conf_data.get('CONFIG_GETTEXT') and conf_data.get('CONFIG_NLS') +if conf_data.get('CONFIG_GETTEXT') code = '''#include extern int _nl_msg_cat_cntr; void main() { _nl_msg_cat_cntr = 1; } diff --git a/src/mime/backend/meson.build b/src/mime/backend/meson.build index 9c879fd2d..21b0682f0 100644 --- a/src/mime/backend/meson.build +++ b/src/mime/backend/meson.build @@ -35,7 +35,7 @@ if conf_data.get('CONFIG_MAILCAP') and (get_option('test-mailcap') or get_option meson.project_source_root() / 'src/intl/gettext/textdomain.c') endif - if conf_data.get('CONFIG_NLS') and conf_data.get('CONFIG_GETTEXT') + if conf_data.get('CONFIG_GETTEXT') mailcap_cache_files += files( meson.project_source_root() / 'src/intl/libintl.c', meson.project_source_root() / 'src/util/env.c')