[vlc-devel] [PATCH 1/3] qt4: Define Q_DECL_OVERRIDE for Qt4
Tristan Matthews
le.businessman at gmail.com
Fri Aug 15 06:08:32 CEST 2014
On Thu, Aug 14, 2014 at 11:42 AM, Uwe L. Korn <uwelk at xhochy.com> 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)
You want
#if !HAS_QT5 && !defined(Q_DECL_OVERRIDE)
since HAS_QT5 is always defined.
Best,
Tristan
> +# 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
More information about the vlc-devel
mailing list