From 22c16e43ed5ca8cfb2e1baf2f515dc3785c4be14 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 15 May 2024 02:14:25 +0200 Subject: [PATCH] build: Kill GET_VERSION(). Just call micoforia_version() directly. --- Makefile | 1 - micoforia.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c214619..52998ba 100644 --- a/Makefile +++ b/Makefile @@ -68,7 +68,6 @@ XCPPFLAGS += -DURL='"$(URL)"' XCPPFLAGS += -DCLONE_URL='"$(CLONE_URL)"' XCPPFLAGS += -DGITWEB_URL='"$(GITWEB_URL)"' XCPPFLAGS += -DHOME_URL='"$(HOME_URL)"' -XCPPFLAGS += -DGET_VERSION='$(PACKAGE)_version' XCPPFLAGS += -DLOGLEVELS='$(LOGLEVELS)' XCPPFLAGS += -DLICENSE='"$(LICENSE)"' XCPPFLAGS += -DLICENSE_URL='"$(LICENSE_URL)"' diff --git a/micoforia.c b/micoforia.c index 6993542..9afd269 100644 --- a/micoforia.c +++ b/micoforia.c @@ -405,7 +405,7 @@ static void show_subcommand_summary(bool verbose) } } -const char *GET_VERSION(void); +const char *micoforia_version(void); static void handle_version_and_help(void) { char *help; @@ -423,7 +423,7 @@ static void handle_version_and_help(void) "Author's Home Page: " HOME_URL "\n" "Send feedback to: " AUTHOR " <" EMAIL ">\n" , - GET_VERSION() + micoforia_version() ); exit(EXIT_SUCCESS); } -- 2.39.5