From a03e48a871f775901c0946f3e4eb34f41a7e5e1a Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Fri, 29 May 2015 18:53:45 -0400 Subject: enable building without curses --- src/help.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/help.c') diff --git a/src/help.c b/src/help.c index afa2abf..d7732ad 100644 --- a/src/help.c +++ b/src/help.c @@ -19,8 +19,13 @@ void print_usage(int argc, char *argv[]) void print_version(void) { - output("market-sim " PROGRAM_VERSION "\n"); - output("Built with %s.\n", curl_version()); + output(PROGRAM_NAME " " PROGRAM_VERSION "\n"); + output("%s\n", curl_version()); +#ifndef WITHOUT_CURSES + output("%s\n", curses_version()); +#else + output("Built without curses support.\n"); +#endif output("Build date: %s\n", __DATE__); output("Copyright (C) 2015 Franklin Wei.\n\n"); output("License GPLv2: GNU GPL version 2 \n"); -- cgit v1.1