From 833630979404faae2bd99c59e4e5739e675917f0 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sat, 1 May 2021 16:55:38 +0100 Subject: meson: Define HAVE_CONFIG_H as a project flag Precisely what Autotools does, instead of adding it as per-target C argument. Once we remove HAVE_CONFIG_H checks in every source file, we'll be able to drop it. --- meson.build | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index d4f759224..06df7f9c1 100644 --- a/meson.build +++ b/meson.build @@ -45,6 +45,9 @@ endif add_project_arguments('-D_GNU_SOURCE', language: 'c') +# Autotools compatibility +add_project_arguments('-DHAVE_CONFIG_H', language: 'c') + # Make sure source directory hasn't been configured with autotools if meson.version().version_compare('>= 0.53') fs = import('fs') -- cgit v1.2.1