On Tue Apr 14 19:17:06 2026 +0000, Alexandre Julliard wrote:
That's not how it works, cf. the explanation under https://gitlab.winehq.org/wine/wine/-/wikis/Wine-Developer's-Guide/Coding-Practice#writing-portable-code. Whether feature X was standardized at the same time as feature Y is irrelevant, it doesn't tell us anything about what features are available in what version of what compiler. The only thing that matters is whether it works with all the compilers that people are using to build Wine. Designated initializers work everywhere (more or less, cf. 26cac37309dbd31a39fc84c9996da205024f71ad for a recent example). Compound literals used to be more problematic, but they may be OK nowadays. We can put them in and see what happens, but note that if someone reports that it broke their build, they will have to be taken out, no matter what C99 says. FWIW, according to a regex grep, there are two uses in vkd3d that have been imported into Wine. I don't see any other uses in the codebase.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10649#note_136153