top level meson.build: enable c11 w/ gnu extensions #1430
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This was much less painful than I thought it would be to do.
Major reason to migrate: Multithreading support requires it, as POSIX threads mechanics were not specified until c11
Minor reason to migrate: -Wpedanitc stops yelling at us about anonymous structs, as they are now C standard
Also interesting note: We can compile without any GNU extensions at all with C23 as thats when they added the typeof() unary operator, but I am sure that is a little to bleeding edge for most X11 users and devs, so gnu11 it shall be.