summaryrefslogtreecommitdiffstats
path: root/src/DabMod.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r--src/DabMod.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp
index 66665bd..4adce76 100644
--- a/src/DabMod.cpp
+++ b/src/DabMod.cpp
@@ -78,8 +78,14 @@ void signalHandler(int signalNb)
void printUsage(char* progName, FILE* out = stderr)
{
- fprintf(out, "Welcome to %s %s%s, compiled at %s, %s\n\n",
- PACKAGE, VERSION, GITVERSION, __DATE__, __TIME__);
+ fprintf(out, "Welcome to %s %s, compiled at %s, %s\n\n",
+ PACKAGE,
+#if defined(GITVERSION)
+ GITVERSION,
+#else
+ VERSION,
+#endif
+ __DATE__, __TIME__);
fprintf(out, "Usage with configuration file:\n");
fprintf(out, "\t%s -C config_file.ini\n\n", progName);