summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2013-02-19 16:50:02 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-19 17:05:43 +0100
commit39b1bd8f45b9d1e0f2db0cd0d410d64422ffd992 (patch)
tree5d2b818ad038ce1cfefbe6edd81c7a676b23c18a /src/gui
parent5d6916b4c1f6ea3b86cc3d820c433fec8a42fad0 (diff)
undef B0 to build on PPC (conflict with definition in termios.h)
This is the same fix that was already done in qprinter.h /usr/include/bits/termios.h:122:#define B0 0000000 /* hang up */ so the compiler sees B0 as a numeric constant Task-number: QTBUG-29704 Change-Id: I2df5e1783f3142558cbc1606e0c61fcf636f2de8 Reviewed-by: David Faure (KDE) <faure@kde.org>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/painting/qpagedpaintdevice.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/painting/qpagedpaintdevice.h b/src/gui/painting/qpagedpaintdevice.h
index 02ed2583ee..b2b53d8038 100644
--- a/src/gui/painting/qpagedpaintdevice.h
+++ b/src/gui/painting/qpagedpaintdevice.h
@@ -48,6 +48,9 @@ QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
+#if defined(B0)
+#undef B0 // Terminal hang-up. We assume that you do not want that.
+#endif
class QPagedPaintDevicePrivate;