From 647398ead44ed12556ac61d61e8ae6d9012a18e2 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 25 Jul 2023 21:54:49 +0200 Subject: [PATCH] util: use C23 deprecated attribute Signed-off-by: Simon Ser --- src/wayland-util.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wayland-util.h b/src/wayland-util.h index 79aabc7b..c99069cc 100644 --- a/src/wayland-util.h +++ b/src/wayland-util.h @@ -48,7 +48,9 @@ extern "C" { #endif /** Deprecated attribute */ -#if defined(__GNUC__) && __GNUC__ >= 4 +#if __STDC_VERSION__ >= 202311L +#define WL_DEPRECATED [[deprecated]] +#elif defined(__GNUC__) && __GNUC__ >= 4 #define WL_DEPRECATED __attribute__ ((deprecated)) #else #define WL_DEPRECATED