mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
Also use [[deprecated]] when compiling with at least C++14
Signed-off-by: David Redondo <kde@david-redondo.de>
This commit is contained in:
parent
7c2ffb0d71
commit
afd498b6f5
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** Deprecated attribute */
|
/** Deprecated attribute */
|
||||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
|
#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || (defined(__cplusplus) && __cplusplus >= 201402L)
|
||||||
#define WL_DEPRECATED [[deprecated]]
|
#define WL_DEPRECATED [[deprecated]]
|
||||||
#elif defined(__GNUC__) && __GNUC__ >= 4
|
#elif defined(__GNUC__) && __GNUC__ >= 4
|
||||||
#define WL_DEPRECATED __attribute__ ((deprecated))
|
#define WL_DEPRECATED __attribute__ ((deprecated))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue