From: Twaik Yont <9674930+twaik@users.noreply.github.com> After commit 7557d83c074a958ea042c3b86e11cd3b5670ec66, the Android OpenGL driver fails to build because set_window_opengl_drawable() is no longer visible. Export set_window_opengl_drawable() on Android to restore the wineandroid.drv build, while keeping the existing internal linkage for non-Android platforms. Signed-off-by: Twaik Yont <9674930+twaik@users.noreply.github.com> --- dlls/win32u/opengl.c | 7 ++++++- dlls/wineandroid.drv/opengl.c | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/dlls/win32u/opengl.c b/dlls/win32u/opengl.c index f5308314812..37294238285 100644 --- a/dlls/win32u/opengl.c +++ b/dlls/win32u/opengl.c @@ -1346,7 +1346,12 @@ static int win32u_wglGetPixelFormat( HDC hdc ) return format > 0 ? format : 0; } -static void set_window_opengl_drawable( HWND hwnd, struct opengl_drawable *new_drawable, BOOL current ) +#ifdef __ANDROID__ +DECLSPEC_EXPORT +#else +static +#endif +void set_window_opengl_drawable( HWND hwnd, struct opengl_drawable *new_drawable, BOOL current ) { struct opengl_drawable *old_drawable = NULL; WND *win; diff --git a/dlls/wineandroid.drv/opengl.c b/dlls/wineandroid.drv/opengl.c index 1efd312b940..366158d4955 100644 --- a/dlls/wineandroid.drv/opengl.c +++ b/dlls/wineandroid.drv/opengl.c @@ -44,6 +44,9 @@ #include "wine/opengl_driver.h" #include "wine/debug.h" +// defined in dlls/win32u/opengl.c +extern void set_window_opengl_drawable( HWND hwnd, struct opengl_drawable *new_drawable, BOOL current ); + WINE_DEFAULT_DEBUG_CHANNEL(android); static const struct egl_platform *egl; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9977