From 81fb9c5b14a89b47ea648c0a25f79b09ef7c92ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 18 Mar 2022 09:51:58 +0200 Subject: [PATCH] qversiontagging: Fix the imp prefix for 32 bit arm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The underscore symbol prefix is only used on 32 bit x86, not on other 32 bit architectures such as arm. Change-Id: Iac82f2d70c8b0c811faa7af5b59805b388b0a00c Reviewed-by: MÃ¥rten Nordheim --- src/corelib/global/qversiontagging.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/corelib/global/qversiontagging.h b/src/corelib/global/qversiontagging.h index 00c847c690..761a0473ad 100644 --- a/src/corelib/global/qversiontagging.h +++ b/src/corelib/global/qversiontagging.h @@ -115,12 +115,12 @@ struct QVersionTag #endif #if defined(Q_OS_WIN) -# ifdef _WIN64 -// 64-bit calling convention does not prepend a _ -# define QT_MANGLE_IMPORT_PREFIX __imp_ -# else -// 32-bit convention does prepend a _ +# ifdef Q_PROCESSOR_X86_32 +// 32-bit x86 convention does prepend a _ # define QT_MANGLE_IMPORT_PREFIX _imp__ +# else +// Calling convention on other architectures does not prepend a _ +# define QT_MANGLE_IMPORT_PREFIX __imp_ # endif # ifdef Q_CC_MSVC # pragma section(".qtversion",read,shared)