mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
util: use C23 deprecated attribute
Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
parent
56b9c92b98
commit
647398ead4
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue