Partial revert of `core/version.h` changes in #88527
I misunderstood what this does, we still use this code.
This commit is contained in:
parent
a92921ae49
commit
0246230e2b
|
@ -47,8 +47,13 @@
|
||||||
// forward-compatible.
|
// forward-compatible.
|
||||||
// Example: "3.1"
|
// Example: "3.1"
|
||||||
#define VERSION_BRANCH _MKSTR(VERSION_MAJOR) "." _MKSTR(VERSION_MINOR)
|
#define VERSION_BRANCH _MKSTR(VERSION_MAJOR) "." _MKSTR(VERSION_MINOR)
|
||||||
|
#if VERSION_PATCH
|
||||||
// Example: "3.1.4"
|
// Example: "3.1.4"
|
||||||
#define VERSION_NUMBER VERSION_BRANCH "." _MKSTR(VERSION_PATCH)
|
#define VERSION_NUMBER VERSION_BRANCH "." _MKSTR(VERSION_PATCH)
|
||||||
|
#else // patch is 0, we don't include it in the "pretty" version number.
|
||||||
|
// Example: "3.1" instead of "3.1.0"
|
||||||
|
#define VERSION_NUMBER VERSION_BRANCH
|
||||||
|
#endif // VERSION_PATCH
|
||||||
|
|
||||||
// Version number encoded as hexadecimal int with one byte for each number,
|
// Version number encoded as hexadecimal int with one byte for each number,
|
||||||
// for easy comparison from code.
|
// for easy comparison from code.
|
||||||
|
|
Loading…
Reference in New Issue