From afd498b6f561b82b88bf1b647209c9ef0dca9e94 Mon Sep 17 00:00:00 2001 From: David Redondo Date: Wed, 5 Feb 2025 09:27:22 +0100 Subject: Also use [[deprecated]] when compiling with at least C++14 Signed-off-by: David Redondo --- src/wayland-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/wayland-util.h b/src/wayland-util.h index c929a1a..4540f04 100644 --- a/src/wayland-util.h +++ b/src/wayland-util.h @@ -48,7 +48,7 @@ extern "C" { #endif /** Deprecated attribute */ -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L +#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || (defined(__cplusplus) && __cplusplus >= 201402L) #define WL_DEPRECATED [[deprecated]] #elif defined(__GNUC__) && __GNUC__ >= 4 #define WL_DEPRECATED __attribute__ ((deprecated)) -- cgit v1.2.3-70-g09d2