Guard for when defs CR_YEAR and BLDDATE are not supplied
This commit is contained in:
parent
1e82124264
commit
377bcb5642
1 changed files with 6 additions and 0 deletions
|
|
@ -16,6 +16,10 @@
|
|||
#define VERSION "1.0.0"
|
||||
#endif
|
||||
|
||||
#ifndef CR_YEAR
|
||||
#define CR_YEAR "2026"
|
||||
#endif
|
||||
|
||||
// clang-format off
|
||||
const char help[] =
|
||||
"Usage:\n"
|
||||
|
|
@ -124,7 +128,9 @@ static const struct option longopts[] = {
|
|||
|
||||
int main(int argc, char *argv[]) {
|
||||
printf("%s version %s\n", basename(argv[0]), VERSION);
|
||||
#ifdef BLDDATE
|
||||
printf("Build date: %s\n", BLDDATE);
|
||||
#endif
|
||||
fprintf(stdout, copyright, CR_YEAR);
|
||||
printf("\n");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue