Andre Poenitz wrote: > On Tue, Jun 12, 2007 at 09:38:59PM +0200, Peter Kümmel wrote: >> Edwin Leuven wrote: >>> Edwin Leuven wrote: >>>> Peter Kümmel wrote: >>>>> I'm wrong, moc is better now. Here (4.3) this macro check works: >>>>> >>>>> #if (QT_VERSION >= QT_VERSION_CHECK(4, 2, 0)) >>> and >>> >>> #if QT_VERSION >= QT_VERSION_CHECK(4, 2, 0) >>> >>> compiles but with the following messages: >>> >>> 1>c:\lyx\trunk\src\frontends\qt4\IconPalette.h(20) : warning C4067: >>> unexpected tokens following preprocessor directive - expected a newline >>> 1>c:\lyx\trunk\src\frontends\qt4\IconPalette.h(20) : warning C4067: >>> unexpected tokens following preprocessor directive - expected a newline >>> 1>c:\lyx\trunk\src\frontends\qt4\IconPalette.h(30) : warning C4067: >>> unexpected tokens following preprocessor directive - expected a newline >>> 1>c:\lyx\trunk\src\frontends\qt4\IconPalette.h(30) : warning C4067: >>> unexpected tokens following preprocessor directive - expected a newline >>> >> maybe QT_VERSION_CHECK is new in qt4.3, could you find it in >> src/corelib/global/qglobal.h? >> >> Does it help when you add for Qt<4.3? >> >> #define QT_VERSION_CHECK(major, minor, patch) >> ((major<<16)|(minor<<8)|(patch)) > > Maybe just using 0x040200 in the check would help, too... > > Andre' >
Edwin started with #if QT_VERSION >= 0x040200 but have you tried #if (QT_VERSION >= 0x040200) ? -- Peter Kümmel