From 8a0f5250ac6971de741b9d4ee6dc4a9f742c6586 Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Sat, 6 Dec 2014 14:00:25 +0100 Subject: [PATCH] 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 --- src/emu/mame.h | 2 +- src/version.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/emu/mame.h b/src/emu/mame.h index 457b13f39f6..4f2e7747d8b 100644 --- a/src/emu/mame.h +++ b/src/emu/mame.h @@ -120,7 +120,7 @@ private: //************************************************************************** extern const char build_version[]; - +extern const char bare_build_version[]; /*************************************************************************** diff --git a/src/version.c b/src/version.c index d3c690a7f3f..93121236803 100644 --- a/src/version.c +++ b/src/version.c @@ -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__")";