From 02a0367a4bc83123133a9517434c4e7e814b09bb Mon Sep 17 00:00:00 2001 From: jefrecantuledesma <98501869+jefrecantuledesma@users.noreply.github.com> Date: Sun, 7 Dec 2025 01:44:29 -0500 Subject: [PATCH] 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 --- include/versioninfo.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/versioninfo.h b/include/versioninfo.h index f2a535313..7f3e637b2 100644 --- a/include/versioninfo.h +++ b/include/versioninfo.h @@ -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