Fix Clang compiler misidentification in About dialog (#8153)
Clang was incorrectly displayed as 'GCC Clang' because __GNUC__ is defined by Clang for compatibility. Reordered preprocessor checks in versioninfo.h to test for __clang__ before __GNUC__. Fixes #8120
This commit is contained in:
committed by
GitHub
parent
0187e64ceb
commit
02a0367a4b
@@ -3,10 +3,10 @@
|
||||
|
||||
#include "LmmsCommonMacros.h"
|
||||
|
||||
#if defined(__GNUC__)
|
||||
constexpr const char* LMMS_BUILDCONF_COMPILER_VERSION = "GCC " __VERSION__;
|
||||
#elif defined(__clang__)
|
||||
#if defined(__clang__)
|
||||
constexpr const char* LMMS_BUILDCONF_COMPILER_VERSION = "Clang " __clang_version__;
|
||||
#elif defined(__GNUC__)
|
||||
constexpr const char* LMMS_BUILDCONF_COMPILER_VERSION = "GCC " __VERSION__;
|
||||
#elif defined(_MSC_VER)
|
||||
constexpr const char* LMMS_BUILDCONF_COMPILER_VERSION = "MSVC " LMMS_STRINGIFY(_MSC_FULL_VER);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user