diff options
| author | David Redondo <kde@david-redondo.de> | 2025-02-05 09:27:22 +0100 |
|---|---|---|
| committer | David Redondo <kde@david-redondo.de> | 2025-02-05 09:43:21 +0100 |
| commit | afd498b6f561b82b88bf1b647209c9ef0dca9e94 (patch) | |
| tree | c00dc975bc5679d4099e5f20cee3778129b48bf9 | |
| parent | Make wayland-util.h -Wundef safe when compiled by a C++ compiler (diff) | |
| download | wayland-afd498b6f561b82b88bf1b647209c9ef0dca9e94.tar wayland-afd498b6f561b82b88bf1b647209c9ef0dca9e94.tar.gz wayland-afd498b6f561b82b88bf1b647209c9ef0dca9e94.tar.bz2 wayland-afd498b6f561b82b88bf1b647209c9ef0dca9e94.tar.lz wayland-afd498b6f561b82b88bf1b647209c9ef0dca9e94.tar.xz wayland-afd498b6f561b82b88bf1b647209c9ef0dca9e94.tar.zst wayland-afd498b6f561b82b88bf1b647209c9ef0dca9e94.zip | |
Also use [[deprecated]] when compiling with at least C++14
Signed-off-by: David Redondo <kde@david-redondo.de>
| -rw-r--r-- | src/wayland-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |
