mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-23 19:21:29 +00:00
In order to avoid release version strings in non-git builds, by default --version on non-tagged commits now also prints 'development build' as the 2nd line
This commit is contained in:
parent
88cfa53dc2
commit
5ea710e317
2 changed files with 4 additions and 0 deletions
2
gmqcc.h
2
gmqcc.h
|
@ -45,6 +45,8 @@
|
|||
#define GMQCC_VERSION_BUILD(J,N,P) (((J)<<16)|((N)<<8)|(P))
|
||||
#define GMQCC_VERSION \
|
||||
GMQCC_VERSION_BUILD(GMQCC_VERSION_MAJOR, GMQCC_VERSION_MINOR, GMQCC_VERSION_PATCH)
|
||||
/* Undefine the following on a release-tag: */
|
||||
#define GMQCC_VERSION_TYPE_DEVEL
|
||||
|
||||
/*
|
||||
* We cannot rely on C99 at all, since compilers like MSVC
|
||||
|
|
2
main.c
2
main.c
|
@ -53,6 +53,8 @@ static void version() {
|
|||
);
|
||||
#ifdef GMQCC_GITINFO
|
||||
con_out("git build: %s\n", GMQCC_GITINFO);
|
||||
#elif defined(GMQCC_VERION_TYPE_DEVEL)
|
||||
con_out("development build\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue