From 39b1bd8f45b9d1e0f2db0cd0d410d64422ffd992 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Tue, 19 Feb 2013 16:50:02 +0100 Subject: 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) --- src/gui/painting/qpagedpaintdevice.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; -- cgit v1.2.3