From 2356dda03444674c373cee43a49c5e47c7f172b2 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 10 Feb 2022 11:16:36 -0800 Subject: [PATCH] Export IsX11/IsWayland symbols needed by wxMediaCtrl library --- include/wx/gtk/private/backend.h | 4 ++-- src/gtk/window.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/wx/gtk/private/backend.h b/include/wx/gtk/private/backend.h index 9e86c88ff1..229c7ce3f0 100644 --- a/include/wx/gtk/private/backend.h +++ b/include/wx/gtk/private/backend.h @@ -8,7 +8,7 @@ #ifdef __WXGTK3__ namespace wxGTKImpl { - bool IsWayland(void* instance); - bool IsX11(void* instance); + WXDLLIMPEXP_CORE bool IsWayland(void* instance); + WXDLLIMPEXP_CORE bool IsX11(void* instance); } #endif diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index a6a19a8a1c..724d91cf85 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -405,6 +405,7 @@ static bool IsBackend(void* instance, const char* string) return strncmp(string, name, strlen(string)) == 0; } +WXDLLIMPEXP_CORE bool wxGTKImpl::IsWayland(void* instance) { static wxByte is = 2; @@ -413,6 +414,7 @@ bool wxGTKImpl::IsWayland(void* instance) return bool(is); } +WXDLLIMPEXP_CORE bool wxGTKImpl::IsX11(void* instance) { static wxByte is = 2;