Only build qemu_egl_init_surface_x11 for GTK
authorMateusz Majewski <m.majewski2@samsung.com>
Tue, 25 Mar 2025 12:08:06 +0000 (13:08 +0100)
committerMateusz Majewski <m.majewski2@samsung.com>
Tue, 25 Mar 2025 14:15:39 +0000 (15:15 +0100)
commit22190336e18fca9bddb10cebe5070f937e0de14b
tree0a063efb4cff5997475c6c46aa7c88aba73b1999
parent6c21b05f355da8d72bb9e3ab8c1adf2fda2de743
Only build qemu_egl_init_surface_x11 for GTK

This function is used only by GTK in this QEMU version. The function
causes issues for us, because it depends on the Window type, which is an
X11-specific EGL alias. Therefore, the signature as is causes a build
error on all non-Linux platforms. We could #define this type away, but
since the function is not used anyway, it is probably better to not care
about it at all.

Change-Id: I122e6976de88760bcaa762daa70e93e6162edc18
include/ui/egl-helpers.h
ui/egl-helpers.c