1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-21 22:30:22 +00:00

version: move NO_BUILD_TIMESTAMPS check to version.h.in

This commit is contained in:
Kacper Michajłow 2023-07-30 12:49:10 +02:00 committed by Dudemanguy
parent df7a094765
commit a39e75ad89
2 changed files with 5 additions and 5 deletions

View File

@ -17,10 +17,6 @@
#include "common.h"
#include "version.h"
#ifdef NO_BUILD_TIMESTAMPS
#undef BUILDDATE
#define BUILDDATE "UNKNOWN"
#endif
const char mpv_version[] = "mpv " VERSION;
const char mpv_builddate[] = BUILDDATE;

View File

@ -1,3 +1,7 @@
#define VERSION "@VERSION@"
#define BUILDDATE __DATE__ " " __TIME__
#define MPVCOPYRIGHT "Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects"
#ifndef NO_BUILD_TIMESTAMPS
#define BUILDDATE __DATE__ " " __TIME__
#else
#define BUILDDATE "UNKNOWN"
#endif