util: use C23 deprecated attribute

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2023-07-25 21:54:49 +02:00 committed by Daniel Stone
parent 56b9c92b98
commit 647398ead4

View file

@ -48,7 +48,9 @@ extern "C" {
#endif #endif
/** Deprecated attribute */ /** 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)) #define WL_DEPRECATED __attribute__ ((deprecated))
#else #else
#define WL_DEPRECATED #define WL_DEPRECATED