QLoggingCategory: fix -Wundef

We want to test if QT_BUILDING_QT is defined, so use the right
construct.

Pick-to: 6.8
Task-number: QTBUG-132900
Change-Id: Iac26f70021a337a2c476618979b4b8eb180ffd3b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit fc4aff1249ffbb7a1b34df8a3b06c17aacb22308)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Giuseppe D'Angelo 2025-01-17 16:36:42 +01:00 committed by Qt Cherry-pick Bot
parent 4f8e1bf151
commit 891c1815e8

View File

@ -106,7 +106,7 @@ template <> const bool QLoggingCategoryMacroHolder<QtWarningMsg>::IsOutputEnable
#define QT_DECLARE_EXPORTED_QT_LOGGING_CATEGORY(name, export_macro) \
inline namespace QtPrivateLogging { export_macro const QLoggingCategory &name(); }
#if QT_BUILDING_QT
#ifdef QT_BUILDING_QT
#define Q_DECLARE_LOGGING_CATEGORY(name) \
inline namespace QtPrivateLogging { const QLoggingCategory &name(); }