version: provide a bare version-only constant

This commits add a new global constant containing only the version number,
without build date.
This is useful for tools built around MAME, which would use it to track
capability changes for compatibility layers.

Signed-off-by: Luca Bruno <lucab@debian.org>
This commit is contained in:
Luca Bruno 2014-12-06 14:00:25 +01:00
parent 91e3597e7d
commit 8a0f5250ac
2 changed files with 6 additions and 2 deletions

View File

@ -120,7 +120,7 @@ private:
//**************************************************************************
extern const char build_version[];
extern const char bare_build_version[];
/***************************************************************************

View File

@ -8,5 +8,9 @@
***************************************************************************/
#define BARE_BUILD_VERSION "0.156"
extern const char bare_build_version[];
extern const char build_version[];
const char build_version[] = "0.156 (" __DATE__")";
const char bare_build_version[] = BARE_BUILD_VERSION;
const char build_version[] = BARE_BUILD_VERSION " (" __DATE__")";