From 2e26d30bcce7a1de84b3319c0a7e81ff94da847e Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 5 Apr 2015 10:16:42 +0200 Subject: [PATCH] Check for wxUSE_MEDIACTRL dependency on wxUSE_LONLONG. wxMediaCtrl requires wxLongLong, so check that wxUSE_LONLONG is set if wxUSE_MEDIACTRL is. See #16939. --- include/wx/chkconf.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/wx/chkconf.h b/include/wx/chkconf.h index c67c67cd20..92a58b075d 100644 --- a/include/wx/chkconf.h +++ b/include/wx/chkconf.h @@ -2247,6 +2247,17 @@ # endif #endif /* wxUSE_PREFERENCES_EDITOR */ +#if wxUSE_MEDIACTRL +# if !wxUSE_LONGLONG +# ifdef wxABORT_ON_CONFIG_ERROR +# error "wxMediaCtrl requires wxUSE_LONLONG" +# else +# undef wxUSE_LONLONG +# define wxUSE_LONLONG 1 +# endif +# endif +#endif /* wxUSE_MEDIACTRL */ + #endif /* wxUSE_GUI */ #endif /* _WX_CHKCONF_H_ */