[Development] moc 4.8.6 & macros

Olivier Goffart olivier at woboq.com
Wed Sep 17 17:20:58 CEST 2014


On Tuesday 16 September 2014 23:52:36 Thiago Macieira wrote:
> On Tuesday 16 September 2014 23:00:06 Samuel Gaist wrote:
> > Good question, I'll have to check.
> > If that where not the case, what should I write to give additional include
> > paths to moc ?
> 
> Replace QT_DEPRECATED_SINCE with the actual contents of the macro. Also
> expand QT_VERSION_CHECK.
> 
> Qt 4 moc does not expand macros.

Qt 4 moc does expand macros in #if directive.

(and QT_DEPRECATED_SINCE is defined to 1 for Qt4 in qtserialportglobal.h)

-- 
Olivier

Woboq - Qt services and support - http://woboq.com - http://code.woboq.org




More information about the Development mailing list