diff options
| author | Simon Ser <contact@emersion.fr> | 2023-07-25 21:54:49 +0200 |
|---|---|---|
| committer | Daniel Stone <daniels@collabora.com> | 2024-01-19 14:21:59 +0000 |
| commit | 647398ead44ed12556ac61d61e8ae6d9012a18e2 (patch) | |
| tree | 147d92284f758fedf049f11b0ce684817d0a3c08 /src | |
| parent | util: use C23 typeof if available (diff) | |
| download | wayland-647398ead44ed12556ac61d61e8ae6d9012a18e2.tar wayland-647398ead44ed12556ac61d61e8ae6d9012a18e2.tar.gz wayland-647398ead44ed12556ac61d61e8ae6d9012a18e2.tar.bz2 wayland-647398ead44ed12556ac61d61e8ae6d9012a18e2.tar.lz wayland-647398ead44ed12556ac61d61e8ae6d9012a18e2.tar.xz wayland-647398ead44ed12556ac61d61e8ae6d9012a18e2.tar.zst wayland-647398ead44ed12556ac61d61e8ae6d9012a18e2.zip | |
util: use C23 deprecated attribute
Signed-off-by: Simon Ser <contact@emersion.fr>
Diffstat (limited to 'src')
| -rw-r--r-- | src/wayland-util.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wayland-util.h b/src/wayland-util.h index 79aabc7..c99069c 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 |
