mirror of
https://github.com/LMMS/lmms.git
synced 2026-01-26 07:18:13 -05:00
Make AboutDialog support MSVC compiler info so we can use a screenshot of it to brag with on #devtalk
42 lines
682 B
C
42 lines
682 B
C
#include "lmms_basics.h"
|
|
|
|
#ifdef __GNUC__
|
|
#define COMPILER_VERSION "GCC " __VERSION__
|
|
#elif defined(_MSC_VER)
|
|
#define COMPILER_VERSION "MSVC " STRINGIFY(_MSC_FULL_VER)
|
|
#else
|
|
#define COMPILER_VERSION "unknown compiler"
|
|
#endif
|
|
|
|
#ifdef LMMS_HOST_X86
|
|
#define MACHINE "i386"
|
|
#endif
|
|
|
|
#ifdef LMMS_HOST_X86_64
|
|
#define MACHINE "x86_64"
|
|
#endif
|
|
|
|
#ifndef MACHINE
|
|
#define MACHINE "unknown processor"
|
|
#endif
|
|
|
|
#ifdef LMMS_BUILD_LINUX
|
|
#define PLATFORM "Linux"
|
|
#endif
|
|
|
|
#ifdef LMMS_BUILD_APPLE
|
|
#define PLATFORM "OS X"
|
|
#endif
|
|
|
|
#ifdef LMMS_BUILD_OPENBSD
|
|
#define PLATFORM "OpenBSD"
|
|
#endif
|
|
|
|
#ifdef LMMS_BUILD_WIN32
|
|
#define PLATFORM "win32"
|
|
#endif
|
|
|
|
#ifdef LMMS_BUILD_HAIKU
|
|
#define PLATFORM "Haiku"
|
|
#endif
|