From 5867e0a7ab125004bfae74d668c2ab97786c107c Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Thu, 11 Jun 2015 17:36:31 +0200 Subject: Don't build CUPS related code if QT_NO_CUPS is set. Various related classes aren't built in this case, so the build fails if we try to build the plugin or the widget. Change-Id: Ia3f8651f172bc3c4c643fb2521601683b403eadc Reviewed-by: Friedemann Kleint Reviewed-by: Andy Shaw --- src/plugins/printsupport/cups/qcupsprintengine_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/printsupport/cups/qcupsprintengine_p.h') diff --git a/src/plugins/printsupport/cups/qcupsprintengine_p.h b/src/plugins/printsupport/cups/qcupsprintengine_p.h index b589d40b6c..1396baf106 100644 --- a/src/plugins/printsupport/cups/qcupsprintengine_p.h +++ b/src/plugins/printsupport/cups/qcupsprintengine_p.h @@ -47,7 +47,7 @@ #include "QtPrintSupport/qprintengine.h" -#ifndef QT_NO_PRINTER +#if !defined(QT_NO_PRINTER) && !defined(QT_NO_CUPS) #include #include @@ -100,6 +100,6 @@ private: QT_END_NAMESPACE -#endif // QT_NO_PRINTER +#endif // !defined(QT_NO_PRINTER) && !defined(QT_NO_CUPS) #endif // QCUPSPRINTENGINE_P_H -- cgit v1.2.3