diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2013-02-19 16:50:02 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-19 17:05:43 +0100 |
commit | 39b1bd8f45b9d1e0f2db0cd0d410d64422ffd992 (patch) | |
tree | 5d2b818ad038ce1cfefbe6edd81c7a676b23c18a /src | |
parent | 5d6916b4c1f6ea3b86cc3d820c433fec8a42fad0 (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')
-rw-r--r-- | src/gui/painting/qpagedpaintdevice.h | 3 |
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; |