]> code.ossystems Code Review - openembedded-core.git/commit
qt4-embedded: support c++0x stand for directfb
authorHongxu Jia <hongxu.jia@windriver.com>
Mon, 29 Dec 2014 02:25:55 +0000 (10:25 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 16 Jan 2015 22:59:45 +0000 (22:59 +0000)
commit833cb0e47f7542a67bdf943cede1754b7a20c1d9
tree8cf602766dcbf9c1922fb461b6b1cca4282e3957
parent15c0ee00550b9e5aac04da598393a614a45bc8a9
qt4-embedded: support c++0x stand for directfb

While directfd upgrade to 1.7.6, it always includes directfb++ utils
when C++ is used and set c++0x as c++ standard.
(In git://git.directfb.org/git/directfb/core/DirectFB.git
commit b444bcae3197be9faf883460dcc239ef757d5922, and commit
522beeb76f2a8d2dee30d928d2a5955bd06cf25c)

The directfd in qt4-embedded is c++, and there was a build failure:
...
| qdirectfbwindowsurface.cpp:336:69: error: in C++98 'rect' must be
initialized by constructor, not by '{...}'
|      const DFBRectangle rect = { r.x(), r.y(), r.width(), r.height() };
...

The g++ used c++98 as default c++ standard, we should
explicitly set c++0x for directfd in qt4-embedded.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
meta/recipes-qt/qt4/qt4-4.8.6/0033-configure-support-c-0x-standard-for-directfd.patch [new file with mode: 0644]
meta/recipes-qt/qt4/qt4-embedded.inc