[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#622176: libglib2.0-dev: /usr/include/glib-2.0/gio/gdbusintrospection.h: conflicts with Qt

reassign 622176 libqt4-dev

On 11/04/11 10:49, Emilio Pozuelo Monfort wrote:
> On 10/04/11 19:48, Daniel Schepler wrote:
>> If you include Qt headers before this glib header, Qt's definition of "signals" 
>> to "protected" (for moc) causes an error at line 151.  This is causing a build 
>> failure in polkit-qt-1 (see #614436).
> How is this a GLib bug and not a Qt one?

AFAIK signals is not a reserved keyword in any standard, so IMHO the bug is in
Qt. It shouldn't define random stuff in public headers, but use something like
QT_SIGNALS or whatever (note the namespace). Also the convention is to use
uppercase for definitions, not lowercase.


Reply to: