From ba2c485c55eb2d0bf4c2478f604f51840908d30a Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Fri, 21 Sep 2012 11:37:31 +0200 Subject: Ignore the QT_NAMESPACE for moc runs Moc should not see a defined QT_NAMESPACE, to keep the names of all symbols consistent with an un-namespaced Qt. Change-Id: Ia72afabaa0820b02a0863148510122ce942a5082 Reviewed-by: Lars Knoll Reviewed-by: Olivier Goffart --- src/corelib/global/qglobal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/global/qglobal.h') diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 06e490ada3..60b90dc70f 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -79,7 +79,7 @@ #include -#ifndef QT_NAMESPACE /* user namespace */ +#if !defined(QT_NAMESPACE) || defined(Q_MOC_RUN) /* user namespace */ # define QT_PREPEND_NAMESPACE(name) ::name # define QT_USE_NAMESPACE -- cgit v1.2.3