summaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-10-26 02:11:02 +0300
committerAndrei Karas <akaras@inbox.ru>2017-10-26 02:11:02 +0300
commit3b601ac447ca958ffc556b545cf07cc7a277199e (patch)
tree8efbf80beaca91b14e73f0c38da1e98bcf45d896 /src/main.h
parent6bacc01ec853f91e550fbcb39f2f553eaaf44c47 (diff)
downloadmanaplus-3b601ac447ca958ffc556b545cf07cc7a277199e.tar.gz
manaplus-3b601ac447ca958ffc556b545cf07cc7a277199e.tar.bz2
manaplus-3b601ac447ca958ffc556b545cf07cc7a277199e.tar.xz
manaplus-3b601ac447ca958ffc556b545cf07cc7a277199e.zip
Show full SDL version in version string.
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.h b/src/main.h
index 2b6d6e9e9..d5babcd87 100644
--- a/src/main.h
+++ b/src/main.h
@@ -136,11 +136,11 @@
// define DEBUG_ALPHA_CACHE 1
// define DEBUG_OPENGL_LEAKS 1
-#ifdef USE_SDL2
-#define SDL_NAME "SDL2"
-#else // USE_SDL2
-#define SDL_NAME "SDL1.2"
-#endif // USE_SDL2
+#define VER_INTTOSTR1(ver) #ver
+#define VER_INTTOSTR(ver) VER_INTTOSTR1(ver)
+#define SDL_NAME "SDL " VER_INTTOSTR(SDL_MAJOR_VERSION) "." \
+ VER_INTTOSTR(SDL_MINOR_VERSION) "." VER_INTTOSTR(SDL_PATCHLEVEL)
+
#if defined(ENABLE_PUGIXML)
#define XML_NAME "pugixml"
#elif defined(ENABLE_LIBXML)