diff options
author | Jia Tan <jiat0218@gmail.com> | 2023-01-02 22:33:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-02 22:33:48 +0800 |
commit | bb740e3b117f1a3c65152d01e5755523a908ecb1 (patch) | |
tree | cce1a3cf9981a4a233cd89083e159d26416279e2 /src/common/tuklib_progname.h | |
parent | Tests: test_check: Test corner cases of CLMUL CRC64. (diff) | |
download | xz-bb740e3b117f1a3c65152d01e5755523a908ecb1.tar.xz |
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.
Diffstat (limited to '')
-rw-r--r-- | src/common/tuklib_progname.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/tuklib_progname.h b/src/common/tuklib_progname.h index 791b1251..bb80f25e 100644 --- a/src/common/tuklib_progname.h +++ b/src/common/tuklib_progname.h @@ -18,7 +18,7 @@ TUKLIB_DECLS_BEGIN -#if HAVE_DECL_PROGRAM_INVOCATION_NAME +#ifdef HAVE_PROGRAM_INVOCATION_NAME # define progname program_invocation_name #else # define progname TUKLIB_SYMBOL(tuklib_progname) |