aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-08-08 13:47:10 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 16:27:02 -0500
commitb739848b6ea4c038610ceb7c0b00984a86d99fa9 (patch)
tree29010c4a34d6800d2f706e0fe93eb297f12bf4bc /src/serdi.c
parentcd3d9986f40fd4e605ac2e8168512065439173e2 (diff)
downloadserd-b739848b6ea4c038610ceb7c0b00984a86d99fa9.tar.gz
serd-b739848b6ea4c038610ceb7c0b00984a86d99fa9.tar.bz2
serd-b739848b6ea4c038610ceb7c0b00984a86d99fa9.zip
Add version constants to public header
Diffstat (limited to 'src/serdi.c')
-rw-r--r--src/serdi.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/serdi.c b/src/serdi.c
index 27e6d782..d3ff0813 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -13,6 +13,7 @@
#include "serd/status.h"
#include "serd/syntax.h"
#include "serd/uri.h"
+#include "serd/version.h"
#include "serd/writer.h"
#ifdef _WIN32
@@ -79,11 +80,16 @@ guess_syntax(const char* const filename)
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-2023 David Robillard <d@drobilla.net>.\n"
"License ISC: <https://spdx.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;
}