MSVC: Show compiler version in AboutDialog

Make AboutDialog support MSVC compiler info so we can use a screenshot of
it to brag with on #devtalk
This commit is contained in:
Lukas W
2017-11-22 13:54:19 +01:00
parent 95c0538d1c
commit 313d43bc16
3 changed files with 8 additions and 4 deletions

View File

@@ -1,7 +1,11 @@
#include "lmms_basics.h"
#ifdef __GNUC__
#define GCC_VERSION "GCC " __VERSION__
#define COMPILER_VERSION "GCC " __VERSION__
#elif defined(_MSC_VER)
#define COMPILER_VERSION "MSVC " STRINGIFY(_MSC_FULL_VER)
#else
#define GCC_VERSION "unknown compiler"
#define COMPILER_VERSION "unknown compiler"
#endif
#ifdef LMMS_HOST_X86