[vlc-devel] [PATCH 1/3] qt4: Define Q_DECL_OVERRIDE for Qt4
Jean-Baptiste Kempf
jb at videolan.org
Fri Aug 15 06:06:05 CEST 2014
I find all this Q_DECL_OVERRIDE ugly, to be honest.
But I'm fine with the patchset
On 14 Aug, Uwe L. Korn wrote :
> ---
> modules/gui/qt4/qt4.hpp | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/modules/gui/qt4/qt4.hpp b/modules/gui/qt4/qt4.hpp
> index 44d7db6..cc6e521 100644
> --- a/modules/gui/qt4/qt4.hpp
> +++ b/modules/gui/qt4/qt4.hpp
> @@ -43,6 +43,11 @@
> #define HAS_QT47 ( QT_VERSION >= 0x040700 )
> #define HAS_QT5 ( QT_VERSION >= 0x050000 )
>
> +/* Q_DECL_OVERRIDE is a Qt5 feature, add empty define to not break with Qt4 */
> +#if !defined(HAS_QT5) && !defined(Q_DECL_OVERRIDE)
> +# define Q_DECL_OVERRIDE
> +#endif
> +
> enum {
> DialogEventTypeOffset = 0,
> IMEventTypeOffset = 100,
> --
> 2.0.4
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
--
With my kindest regards,
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
More information about the vlc-devel
mailing list