wlroots-hyprland/types/output
Simon Ser 842093bb84 Define _POSIX_C_SOURCE globally
Stop trying to maintain a per-file _POSIX_C_SOURCE. Instead,
require POSIX.1-2008 globally. A lot of core source files depend
on that already.

Some care must be taken on a few select files where we need a bit
more than POSIX. Some files need XSI extensions (_XOPEN_SOURCE) and
some files need BSD extensions (_DEFAULT_SOURCE). In both cases,
these feature test macros imply _POSIX_C_SOURCE. Make sure to not
define both these macros and _POSIX_C_SOURCE explicitly to avoid
POSIX requirement conflicts (e.g. _POSIX_C_SOURCE says POSIX.1-2001
but _XOPEN_SOURCE says POSIX.1-2008).

Additionally, there is one special case in render/vulkan/vulkan.c.
That file needs major()/minor(), and these are system-specific.
On FreeBSD, _POSIX_C_SOURCE hides system-specific symbols so we need
to make sure it's not defined for this file. On Linux, we can
explicitly include <sys/sysmacros.h> and ensure that apart from
symbols defined there the file only uses POSIX toys.
2024-02-15 15:41:12 +01:00
..
cursor.c Cleanup wlr_matrix.h includes 2023-11-25 08:37:43 +01:00
output.c Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00
render.c Fix bool return types 2024-01-04 22:24:06 +01:00
state.c output: allow_artifacts -> allow_reconfiguration 2023-10-09 08:31:35 +00:00
swapchain.c output: add wlr_output_state_init() 2023-06-23 18:07:26 +00:00