summaryrefslogtreecommitdiffstats
path: root/src/version.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/version.cpp')
-rw-r--r--src/version.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/version.cpp b/src/version.cpp
new file mode 100644
index 00000000000..88a477f246e
--- /dev/null
+++ b/src/version.cpp
@@ -0,0 +1,22 @@
+// license:BSD-3-Clause
+// copyright-holders:Aaron Giles
+/***************************************************************************
+
+ version.c
+
+ Version string source file for MAME.
+
+***************************************************************************/
+
+#define BARE_BUILD_VERSION "0.211"
+
+extern const char bare_build_version[];
+extern const char build_version[];
+const char bare_build_version[] = BARE_BUILD_VERSION;
+#if defined(GIT_VERSION)
+#define VERSION_TO_STRING(s) XVERSION_TO_STRING(s)
+#define XVERSION_TO_STRING(ver) #ver
+const char build_version[] = BARE_BUILD_VERSION " (" VERSION_TO_STRING(GIT_VERSION) ")";
+#else
+const char build_version[] = BARE_BUILD_VERSION " (" __DATE__")";
+#endif