Skip to content

xquartz: replace clangisms like Apple blocks with portable code #1719

@barracuda156

Description

@barracuda156

Describe the feature

The current code in hw/xquartz uses non-portable clang syntax, in particular Apple blocks. Blocks are no supported in gcc, so existing code cannot be compiled with gcc.

It should be implemented because

That will improve portability (clang is broken on powerpc) and allow testing with two major compilers and not just one.

What are the alternatives?

None, really, unless someone adds support of Apple-specific syntax into gcc.

Additional context

Xserver is especially important on older macOS, where anything modern that has GUI needs to use GTK, which in turn requires X11.

P. S. This is probably not something I can do by myself, but I am willing to contribute to this, and can do testing on the actual hardware.

Extra fields

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions