Fix checks for wxUSE_WEBVIEW in MSW config checks

This fixes -Wundef warnings about "wxUSE_WEB" being not defined when OLE
support is disabled.
This commit is contained in:
stahta01
2017-02-17 16:02:17 -05:00
committed by VZ
parent bac4d24bf9
commit c9fad20b7b

View File

@@ -383,12 +383,12 @@
# define wxUSE_MEDIACTRL 0
# endif
# endif
# if wxUSE_WEB
# if wxUSE_WEBVIEW
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxWebView requires wxActiveXContainer under MSW"
# else
# undef wxUSE_WEB
# define wxUSE_WEB 0
# undef wxUSE_WEBVIEW
# define wxUSE_WEBVIEW 0
# endif
# endif
#endif /* !wxUSE_ACTIVEX */
@@ -431,12 +431,12 @@
#if !wxUSE_OLE_AUTOMATION
# if wxUSE_WEB
# if wxUSE_WEBVIEW
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxWebView requires wxUSE_OLE_AUTOMATION under MSW"
# else
# undef wxUSE_WEB
# define wxUSE_WEB 0
# undef wxUSE_WEBVIEW
# define wxUSE_WEBVIEW 0
# endif
# endif
#endif /* !wxUSE_OLE_AUTOMATION */