QLoggingCategory: fix -Wundef
We want to test if QT_BUILDING_QT is defined, so use the right construct. Pick-to: 6.9 6.8 Task-number: QTBUG-132900 Change-Id: Iac26f70021a337a2c476618979b4b8eb180ffd3b Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
f04dfa8666
commit
fc4aff1249
@ -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(); }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user