Fix: version flag is now set with compiler flag

This commit is contained in:
2026-04-23 20:06:03 +02:00
parent 0eac451751
commit ae168f92ce
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -322,7 +322,7 @@ for (int i = 1; i < argc; i++) {
return 0;
} else if (strcmp(arg, "--version") == 0) {
printf("NoteWrapper version 1.0\n");
printf("NoteWrapper %s\n", VERSION);
return 0;
} else {
+3
View File
@@ -18,6 +18,9 @@
#include <errno.h>
#include <time.h>
#include <ftw.h>
#ifndef VERSION
#define VERSION "dev"
#endif
#define BUFFER_SIZE 256 //standard buffer size.
// the three supported values are "daily" "weekly" and "monthly" (for months we use the avarage lenght of a month in a non leap year). All values were calculated on my loyal TI-30 ECO RS
#define DAILY 86400