On Mon, Jun 18, 2007 at 04:20:13AM +0200, Enrico Forestieri wrote: > On Tue, Jun 12, 2007 at 11:28:37PM +0200, Edwin Leuven wrote: > > > >> +// FIXME: this can go when we move to Qt 4.3 > > >> +#define QT_VERSION_CHECK(major, minor, patch) > > >> ((major<<16)|(minor<<8)|(patch)) > > >> + > > >> +#if QT_VERSION >= QT_VERSION_CHECK(4, 2, 0) > > > > > > Wouldn't that give a 'redefine macro' ith 4.3? > > > > > > Why not simply using 0x40200? > > > > because my compiler doesn't like it? > > Erm... seems that the Qt4.1 moc wants 0x040200 and don't understand > QT_VERSION_CHECK(4, 2, 0). I have to use the attached patch in order > to avoid the following compile error:
It looks like either moc doesn't care much about the actual condition but decides whether to use the 'if' or the 'else' branch solely depending on the structure of the line (macro with parameters vs macro without). Andre'