[webkit-reviews] review requested: [Bug 55719] [Qt][WK2] Make Qt port compiling with ENABLE_PLUGIN_PROCESS=1 : [Attachment 85029] Qt Xlib includes conflict fix, Fixed include order, QTBUG-54
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Mar 8 00:10:11 PST 2011
Oleg Romashin (:romaxa) <romaxa at gmail.com> has asked for review:
Bug 55719: [Qt][WK2] Make Qt port compiling with ENABLE_PLUGIN_PROCESS=1
https://bugs.webkit.org/show_bug.cgi?id=55719
Attachment 85029: Qt Xlib includes conflict fix, Fixed include order, QTBUG-54
https://bugs.webkit.org/attachment.cgi?id=85029&action=review
------- Additional Comments from Oleg Romashin (:romaxa) <romaxa at gmail.com>
A bit hacky fix, against webkit style but according to
http://bugreports.qt.nokia.com/browse/QTBUG-54
**************
Since X11 headers are not namespace safe, they have to be included after Qt
headers. Generally, headers should always be included in the order from the
most specialized to the most general one to prevent namespace pollution:
#include "myownheader.h"
#include <someQtHeader.h>
#include <X11/someXheader>
#include <string.h> // system header
**************
Another way to fix it is some magic with "Bool" "Status" defines, but that
looks ugly.
More information about the webkit-reviews
mailing list