WebView: Only include the private header on Windows and macOS

The wrapper isn't used in the Linux code path. Some distributions'
wxWidgets packages don't ship the private headers.
This commit is contained in:
Zhaofeng Li 2022-12-15 17:07:22 -07:00 committed by SoftFever
parent 6b0c17d9e9
commit fd87560bd7

View file

@ -8,7 +8,9 @@
#include <wx/msw/webview_edge.h> #include <wx/msw/webview_edge.h>
#endif #endif
#include <wx/uri.h> #include <wx/uri.h>
#if defined(__WIN32__) || defined(__WXMAC__)
#include "wx/private/jsscriptwrapper.h" #include "wx/private/jsscriptwrapper.h"
#endif
#ifdef __WIN32__ #ifdef __WIN32__
#include "../WebView2.h" #include "../WebView2.h"