From bfc53d1e71d2d122a4652382aced9243d448ca21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 20 Jun 2022 19:20:28 +0200 Subject: [PATCH] shm-formats: #ifdef on formats added in 1.20 --- shm-formats.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shm-formats.h b/shm-formats.h index bb49bd94..3ada8266 100644 --- a/shm-formats.h +++ b/shm-formats.h @@ -1,5 +1,7 @@ #pragma once +#include + #if defined(_DEBUG) static const struct shm_formats { uint32_t format; @@ -109,9 +111,11 @@ static const struct shm_formats { {WL_SHM_FORMAT_NV15, "NV15"}, {WL_SHM_FORMAT_Q410, "Q410"}, {WL_SHM_FORMAT_Q401, "Q401"}, +#if WAYLAND_VERSION_MAJOR > 1 || WAYLAND_VERSION_MINOR >= 20 {WL_SHM_FORMAT_XRGB16161616, "XRGB16161616"}, {WL_SHM_FORMAT_XBGR16161616, "XBGR16161616"}, {WL_SHM_FORMAT_ARGB16161616, "ARGB16161616"}, {WL_SHM_FORMAT_ABGR16161616, "ABGR16161616"}, +#endif }; #endif