From 6095fec9c1387f23e73ecabb76f03a0f709cd35b Mon Sep 17 00:00:00 2001 From: John Kerl Date: Wed, 17 Aug 2016 09:27:04 -0400 Subject: [PATCH] neaten --- c/cli/mlrcli.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/c/cli/mlrcli.c b/c/cli/mlrcli.c index 363b48599..4cc2fee1e 100644 --- a/c/cli/mlrcli.c +++ b/c/cli/mlrcli.c @@ -18,8 +18,10 @@ #ifdef HAVE_CONFIG_H #include "config.h" +#define VERSION_STRING PACKAGE_VERSION #else #include "mlrvers.h" +#define VERSION_STRING MLR_VERSION #endif // ---------------------------------------------------------------- @@ -530,11 +532,7 @@ static void main_usage_then_chaining(FILE* o, char* argv0) { static void main_usage_see_also(FILE* o, char* argv0) { fprintf(o, "For more information please see http://johnkerl.org/miller/doc and/or\n"); fprintf(o, "http://github.com/johnkerl/miller."); -#ifdef HAVE_CONFIG_H - fprintf(o, " This is Miller version %s.\n", PACKAGE_VERSION); -#else - fprintf(o, " This is Miller version %s.\n", MLR_VERSION); -#endif // HAVE_CONFIG_H + fprintf(o, " This is Miller version %s.\n", VERSION_STRING); } static void print_type_arithmetic_info(FILE* o, char* argv0) {