From a66da840471126cf4a7d7310b10a35199b871ef1 Mon Sep 17 00:00:00 2001 From: Avril Date: Wed, 14 Jul 2021 02:45:33 +0100 Subject: [PATCH] Fixed `deprecated` macro conflicts with attribute usage. (renamed to `_deprecated`) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fortune for naka's current commit: Blessing − 吉 --- include/macros.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/macros.h b/include/macros.h index 234a694..309c068 100644 --- a/include/macros.h +++ b/include/macros.h @@ -18,11 +18,13 @@ #define _cold __attribute__((cold)) #define _hot __attribute__((hot)) +#define _dead __attribute__((unused)) #ifndef __cplusplus #define noreturn __attribute__((noreturn)) -#define deprecated __attribute__((deprecated)) -#define deprecated_message(str) __attribute__((deprecated(str))) +#define _deprecated __attribute__((deprecated)) +#define deprecated_message(str) __attribute__((deprecated(str))) +#define _deprecated_msg(str) deprecated_message(str) #endif #define noinline __attribute__((noinline))