diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/serd_config.h | 3 | ||||
-rw-r--r-- | src/serdi.c | 10 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/serd_config.h b/src/serd_config.h index 53378a48..90888c39 100644 --- a/src/serd_config.h +++ b/src/serd_config.h @@ -28,9 +28,6 @@ #ifndef SERD_CONFIG_H #define SERD_CONFIG_H -// Define version unconditionally so a warning will catch a mismatch -#define SERD_VERSION "1.0.1" - #if !defined(SERD_NO_DEFAULT_CONFIG) // We need unistd.h to check _POSIX_VERSION 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 <d@drobilla.net> + Copyright 2011-2021 David Robillard <d@drobilla.net> 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 " <http://drobilla.net/software/serd>\n"); + printf("serdi %d.%d.%d <http://drobilla.net/software/serd>\n", + SERD_MAJOR_VERSION, + SERD_MINOR_VERSION, + SERD_MICRO_VERSION); + printf("Copyright 2011-2021 David Robillard <d@drobilla.net>.\n" "License: <http://www.opensource.org/licenses/isc>\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; } |