wlroots/render
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
..
allocator Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00
gles2 Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00
pixman render/pixman: add wlr_pixman_renderer_get_buffer_image() 2023-12-11 19:47:55 +01:00
vulkan Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00
dmabuf_fallback.c render/dmabuf: add dmabuf_export_sync_file() 2022-12-06 14:54:09 +00:00
dmabuf_linux.c render/dmabuf: add dmabuf_export_sync_file() 2022-12-06 14:54:09 +00:00
dmabuf.c Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00
drm_format_set.c render/drm_format_set: fix possible leak on realloc error 2024-01-17 15:44:37 +00:00
egl.c Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00
meson.build Add a new renderer API 2023-04-25 17:25:10 +02:00
pass.c render: drop legacy render pass 2023-11-22 00:55:56 +01:00
pixel_format.c render/pixel-format: Move has_alpha into it's own array 2024-01-31 13:47:17 -05:00
swapchain.c swapchain: Add wlr_swapchain_has_buffer 2023-12-03 05:29:05 +00:00
wlr_renderer.c Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00
wlr_texture.c wlr_texture: Introduce wlr_texture_preferred_read_format 2023-11-30 19:56:54 -05:00