[4.12] gdk: Fix compilation on macos
(cherry picked from commit aa888c0b)
Backports !6208 (merged) to gtk-4-12
to fix build (for macOS < 10.13, you might additionally want !5813 (merged))
Edited by Bobby Rong
(cherry picked from commit aa888c0b)
Backports !6208 (merged) to gtk-4-12
to fix build (for macOS < 10.13, you might additionally want !5813 (merged))