summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-22 19:42:08 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-22 20:17:57 +0300
commit12af9a1e38337bfdd30e5da318cd7fde2bf7fd3a (patch)
tree4da558d635d62d35b902c8cfb93d075b7f3d238d /src
parente2c087adf039e9303a945cbd1a72a7cb7b0d8cc6 (diff)
downloadplus-12af9a1e38337bfdd30e5da318cd7fde2bf7fd3a.tar.gz
plus-12af9a1e38337bfdd30e5da318cd7fde2bf7fd3a.tar.bz2
plus-12af9a1e38337bfdd30e5da318cd7fde2bf7fd3a.tar.xz
plus-12af9a1e38337bfdd30e5da318cd7fde2bf7fd3a.zip
Add max simd version suported by compiled binary into version name.
Diffstat (limited to 'src')
-rw-r--r--src/main.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main.h b/src/main.h
index 6436c103f..4d7b50c7e 100644
--- a/src/main.h
+++ b/src/main.h
@@ -59,6 +59,8 @@
#define PACKAGE_VERSION SMALL_VERSION;
#endif // HAVE_CONFIG_H
+#include "localconsts.h"
+
#if defined __APPLE__
#define PACKAGE_OS "Mac OS X"
#elif defined(__ANDROID__) || defined(ANDROID)
@@ -152,12 +154,18 @@
#define XML_NAME "unknown"
#endif // defined(ENABLE_PUGIXML)
+#ifdef SIMD_SUPPORTED
+#define SIMD_NAME ", SIMD"
+#else // SIMD_SUPPORTED
+#define SIMD_NAME ""
+#endif // SIMD_SUPPORTED
+
#define PACKAGE_EXTENDED_VERSION "ManaPlus (" PACKAGE_OS \
-"; %s; " SDL_NAME ", " XML_NAME "; 4144 v" SMALL_VERSION ")"
+"; %s; " SDL_NAME ", " XML_NAME SIMD_NAME "; 4144 v" SMALL_VERSION ")"
#define PACKAGE_VERSION_4144 "ManaPlus 4144-" SMALL_VERSION ""
#define FULL_VERSION "ManaPlus " SMALL_VERSION " " PACKAGE_OS ", " \
- SDL_NAME ", " XML_NAME
+ SDL_NAME ", " XML_NAME SIMD_NAME
#ifdef ANDROID
#ifdef PKG_DATADIR