From 5dce7eb912787ac03d61bee13976c2b91ad3b80d Mon Sep 17 00:00:00 2001 From: Murilo Pereira Date: Sun, 12 Aug 2018 22:45:25 +0200 Subject: [PATCH] Rename version macro definition. --- Makefile | 4 ++-- src/ttysolitaire.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 340eb89..b7025a3 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,9 @@ VERSION = 1.0.0 CC ?= gcc CFLAGS ?= -g -CFLAGS += -W -Wall -pedantic -ansi -std=c99 -DTS_VERSION=\"$(VERSION)\" +CFLAGS += -W -Wall -pedantic -ansi -std=c99 -DVERSION=\"$(VERSION)\" -# OS X installs ncurses with wide character support, but not as "libncurses" +# OS X installs ncurses with wide character support, but not as "libncurses". ifeq ($(shell uname -s),Darwin) LDFLAGS += -lncurses else diff --git a/src/ttysolitaire.c b/src/ttysolitaire.c index cbc5442..1bc6a5f 100644 --- a/src/ttysolitaire.c +++ b/src/ttysolitaire.c @@ -8,8 +8,8 @@ #include "keyboard.h" #include "common.h" -#ifndef TS_VERSION -#define TS_VERSION "n/a" +#ifndef VERSION +#define VERSION "n/a" #endif const char *program_name; @@ -127,5 +127,5 @@ void usage(const char *program_name) { } void version() { - printf("%s\n", TS_VERSION); + printf("%s\n", VERSION); }