summaryrefslogtreecommitdiffstatshomepage
path: root/src/version.c
diff options
context:
space:
mode:
author Luca Bruno <lucab@debian.org>2014-12-06 14:00:25 +0100
committer Luca Bruno <lucab@debian.org>2014-12-08 12:05:16 +0100
commit8a0f5250ac6971de741b9d4ee6dc4a9f742c6586 (patch)
tree561b0929e3f6095240d33137910322d6209e8bb8 /src/version.c
parent91e3597e7dba7b59299cf2a69c2544ce9c576e6e (diff)
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>
Diffstat (limited to 'src/version.c')
-rw-r--r--src/version.c6
1 files changed, 5 insertions, 1 deletions
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__")";