Autogen: Revert moc_predefs.h generation for the MSVC ABI
Revert commit 7c3ca57b91 (MSVC,Clang: Set
CMAKE_CXX_COMPILER_PREDEFINES_COMMAND for the MSVC ABI, 2026-09-18,
v4.5.0-rc1~138^2).
With the compiler's predefined macros moc now takes MSVC-specific
preprocessor branches that it previously skipped, and some of them
are beyond moc's preprocessor. For example, Boost.MPL tests
'defined(bitand)' under '_MSC_EXTENSIONS', which moc fails to parse
because it treats the alternative token 'bitand' as an operator.
Projects that built with CMake 4.4 now fail in AUTOMOC.
Restore the previous behavior, in which CMake does not set
CMAKE_CXX_COMPILER_PREDEFINES_COMMAND for compilers targeting the MSVC
ABI. The WIN32 moc definition added for that ABI by commit 0fd711348c
(Autogen: Pass WIN32 to moc when targeting the MSVC ABI, 2026-09-18,
v4.5.0-rc1~138^2~1) is still added in that case.
Fixes: #28251
Issue: #28093
4 files changed