Commit 70050dd1 authored by Soren Brinkmann's avatar Soren Brinkmann
Browse files

cdefs.h: Introduce '__deprecated' macro



Introduce a macro to mark functions as deprecated.
Signed-off-by: default avatarSoren Brinkmann <soren.brinkmann@xilinx.com>
parent 6770d65f
...@@ -283,8 +283,10 @@ ...@@ -283,8 +283,10 @@
#if __GNUC_PREREQ__(3, 1) #if __GNUC_PREREQ__(3, 1)
#define __noinline __attribute__ ((__noinline__)) #define __noinline __attribute__ ((__noinline__))
#define __deprecated __attribute__ ((deprecated))
#else #else
#define __noinline #define __noinline
#define __deprecated
#endif #endif
#if __GNUC_PREREQ__(3, 3) #if __GNUC_PREREQ__(3, 3)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment