From 411b2ffac686478f3312c4a0c5cf20a230a3f728 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 8 Aug 2021 13:47:10 -0400 Subject: Add version constants to public header --- src/serdi.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/serdi.c') diff --git a/src/serdi.c b/src/serdi.c index 2de41ce7..d84e3663 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -1,5 +1,5 @@ /* - Copyright 2011-2020 David Robillard + Copyright 2011-2021 David Robillard Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -14,7 +14,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include "serd_config.h" #include "system.h" #include "serd/serd.h" @@ -47,11 +46,16 @@ typedef struct { static int print_version(void) { - printf("serdi " SERD_VERSION " \n"); + printf("serdi %d.%d.%d \n", + SERD_MAJOR_VERSION, + SERD_MINOR_VERSION, + SERD_MICRO_VERSION); + printf("Copyright 2011-2021 David Robillard .\n" "License: \n" "This is free software; you are free to change and redistribute it." "\nThere is NO WARRANTY, to the extent permitted by law.\n"); + return 0; } -- cgit v1.2.1