From bb740e3b117f1a3c65152d01e5755523a908ecb1 Mon Sep 17 00:00:00 2001 From: Jia Tan Date: Mon, 2 Jan 2023 22:33:48 +0800 Subject: Build: Only define HAVE_PROGRAM_INVOCATION_NAME if it is set to 1. HAVE_DECL_PROGRAM_INVOCATION_NAME is renamed to HAVE_PROGRAM_INVOCATION_NAME. Previously, HAVE_DECL_PROGRAM_INVOCATION_NAME was always set when building with autotools. CMake would only set this when it was 1, and the dos/config.h did not define it. The new macro definition is consistent across build systems. --- src/common/tuklib_progname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/tuklib_progname.c') diff --git a/src/common/tuklib_progname.c b/src/common/tuklib_progname.c index 7cb7e203..e2ef4e55 100644 --- a/src/common/tuklib_progname.c +++ b/src/common/tuklib_progname.c @@ -14,7 +14,7 @@ #include -#if !HAVE_DECL_PROGRAM_INVOCATION_NAME +#ifndef HAVE_PROGRAM_INVOCATION_NAME char *progname = NULL; #endif -- cgit v1.2.3