From 70050dd10c7fd547fdfa82b9342570de34f1d841 Mon Sep 17 00:00:00 2001 From: Soren Brinkmann Date: Thu, 14 Jan 2016 09:56:06 -0800 Subject: [PATCH] cdefs.h: Introduce '__deprecated' macro Introduce a macro to mark functions as deprecated. Signed-off-by: Soren Brinkmann --- include/stdlib/sys/cdefs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/stdlib/sys/cdefs.h b/include/stdlib/sys/cdefs.h index 16fb1519..e6960f68 100644 --- a/include/stdlib/sys/cdefs.h +++ b/include/stdlib/sys/cdefs.h @@ -283,8 +283,10 @@ #if __GNUC_PREREQ__(3, 1) #define __noinline __attribute__ ((__noinline__)) +#define __deprecated __attribute__ ((deprecated)) #else #define __noinline +#define __deprecated #endif #if __GNUC_PREREQ__(3, 3) -- 2.30.2