.././src/dfb/bitmap.cpp:626:64: error: in C++98 'r' must be initialized by constructor, not by '{...}' DFBRectangle r = { rect.x, rect.y, rect.width, rect.height }; ^ .././src/dfb/dc.cpp:707:47: error: in C++98 'srcRect' must be initialized by constructor, not by '{...}' DFBRectangle srcRect = { srcx, srcy, w, h }; ^ .././src/dfb/dc.cpp:709:61: error: in C++98 'dstRect' must be initialized by constructor, not by '{...}' XLOG2DEVREL(w), YLOG2DEVREL(h) }; ^ .././src/dfb/dcclient.cpp:170:62: error: in C++98 'dfbrect' must be initialized by constructor, not by '{...}' DFBRectangle dfbrect = { r.x, r.y, r.width, r.height }; ^ .././src/dfb/nonownedwnd.cpp:348:67: error: in C++98 'r' must be initialized by constructor, not by '{...}' paintedRect.GetRight(), paintedRect.GetBottom()}; ^ .././src/dfb/window.cpp:153:55: error: in C++98 'rect' must be initialized by constructor, not by '{...}' DFBRectangle rect = { r.x, r.y, r.width, r.height }; ^ .././src/dfb/window.cpp:762:60: error: in C++98 'dfbRect' must be initialized by constructor, not by '{...}' orect.width, orect.height }; ^ --- wxWidgets-3.0.2/src/dfb/bitmap.cpp.orig 2014-10-06 23:33:44.000000000 +0200 +++ wxWidgets-3.0.2/src/dfb/bitmap.cpp 2017-04-08 21:02:22.420076242 +0200 @@ -623,7 +623,8 @@ // NB: DirectFB subsurfaces share the same pixels buffer, so we must // clone the obtained subsurface - DFBRectangle r = { rect.x, rect.y, rect.width, rect.height }; + DFBRectangle r; + r.x = rect.x; r.y = rect.y; r.w = rect.width; r.h = rect.height; return wxBitmap(M_BITMAP->m_surface->GetSubSurface(&r)->Clone()); } --- wxWidgets-3.0.2/src/dfb/dc.cpp.orig 2014-10-06 23:33:44.000000000 +0200 +++ wxWidgets-3.0.2/src/dfb/dc.cpp 2017-04-08 22:30:42.656682391 +0200 @@ -704,9 +704,9 @@ CalcBoundingBox(dstx, dsty); CalcBoundingBox(dstx + w, dsty + h); - DFBRectangle srcRect = { srcx, srcy, w, h }; - DFBRectangle dstRect = { XLOG2DEV(dstx), YLOG2DEV(dsty), - XLOG2DEVREL(w), YLOG2DEVREL(h) }; + DFBRectangle srcRect; srcRect.x = srcx; srcRect.y = srcy; srcRect.w = w; srcRect.h = h; + DFBRectangle dstRect; dstRect.x = XLOG2DEV(dstx); dstRect.y = YLOG2DEV(dsty); + dstRect.w = XLOG2DEVREL(w); dstRect.h = YLOG2DEVREL(h); wxIDirectFBSurfacePtr dst(m_surface); --- wxWidgets-3.0.2/src/dfb/dcclient.cpp.orig 2014-10-06 23:33:44.000000000 +0200 +++ wxWidgets-3.0.2/src/dfb/dcclient.cpp 2017-04-08 22:35:18.586679239 +0200 @@ -167,7 +167,7 @@ else { m_winRect = r; - DFBRectangle dfbrect = { r.x, r.y, r.width, r.height }; + DFBRectangle dfbrect; dfbrect.x = r.x; dfbrect.y = r.y; dfbrect.w = r.width; dfbrect.h = r.height; surface = win->GetDfbSurface()->GetSubSurface(&dfbrect); // if the DC was clipped thanks to rectPaint, we must adjust the --- wxWidgets-3.0.2/src/dfb/nonownedwnd.cpp.orig 2014-10-06 23:33:44.000000000 +0200 +++ wxWidgets-3.0.2/src/dfb/nonownedwnd.cpp 2017-04-08 22:37:43.196677588 +0200 @@ -344,8 +344,8 @@ // do FlipToFront() for each of them, because that could result in visible // updating of the screen; instead, we prefer to flip everything at once. - DFBRegion r = {paintedRect.GetLeft(), paintedRect.GetTop(), - paintedRect.GetRight(), paintedRect.GetBottom()}; + DFBRegion r; r.x1 = paintedRect.GetLeft(); r.y1 = paintedRect.GetTop(); + r.x2 = paintedRect.GetRight(); r.y2 = paintedRect.GetBottom(); DFBRegion *rptr = (winRect == paintedRect) ? NULL : &r; GetDfbSurface()->FlipToFront(rptr); --- wxWidgets-3.0.2/src/dfb/window.cpp.orig 2014-10-06 23:33:44.000000000 +0200 +++ wxWidgets-3.0.2/src/dfb/window.cpp 2017-04-08 22:40:07.890009269 +0200 @@ -150,7 +150,7 @@ wxRect r(GetRect()); AdjustForParentClientOrigin(r.x, r.y, 0); - DFBRectangle rect = { r.x, r.y, r.width, r.height }; + DFBRectangle rect; rect.x = r.x; rect.y = r.y; rect.w = r.width; rect.h = r.height; return parentSurface->GetSubSurface(&rect); } @@ -758,8 +758,8 @@ if ( overlay->IsEmpty() ) continue; // nothing to paint - DFBRectangle dfbRect = { orect.x - orectOrig.x, orect.y - orectOrig.y, - orect.width, orect.height }; + DFBRectangle dfbRect; dfbRect.x = orect.x - orectOrig.x; dfbRect.y = orect.y - orectOrig.y; + dfbRect.w = orect.width; dfbRect.h = orect.height; GetDfbSurface()->Blit ( overlay->GetDirectFBSurface(),