From c5dc2ba2288f902893dba76143b984e5bb8c80f0 Mon Sep 17 00:00:00 2001 From: Ansgar Wehrhahn <31626864+AWehrhahn@users.noreply.github.com> Date: Thu, 8 Apr 2021 13:16:06 +0200 Subject: [PATCH] move the version string into a define --- src/sme/sme_synth_faster.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sme/sme_synth_faster.cpp b/src/sme/sme_synth_faster.cpp index af40f1c..ec3fb92 100644 --- a/src/sme/sme_synth_faster.cpp +++ b/src/sme/sme_synth_faster.cpp @@ -15,6 +15,9 @@ #define SME_DLL #endif +// The SME library version (and compilation date) +#define VERSION "6.03, July 2019" + /* Datafile locations */ // DATA_DIR is defined in platform.h @@ -335,7 +338,7 @@ int compress(char *target, char *source) extern "C" char const *SME_DLL SMELibraryVersion(int n, void *arg[]) /* Return SME library version */ { - sprintf(result, "SME Library version: 6.03, July 2019, %s", PLATFORM); + sprintf(result, "SME Library version: %s, %s", VERSION, PLATFORM); return result; }