version: move NO_BUILD_TIMESTAMPS check to version.h.in
This commit is contained in:
1 parent
df7a094765
commit
a39e75ad89
2 files changed
+5
-5
No files matched your search
@@ -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;
|
||||
|
||||
+5
-1
@@ -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
|
||||
Reference in new issue
Block a user