summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoren Brinkmann <soren.brinkmann@xilinx.com>2016-01-20 15:32:23 -0800
committerSoren Brinkmann <soren.brinkmann@xilinx.com>2016-01-20 15:45:39 -0800
commit6b8d6720cc1fb8fcb2c21d3f6124e04aed889c11 (patch)
treedcf03e7f2ab73bc73846ac4d5ccc53c3c8ae4ad1
parent84091c48167c3335c826b31c96c67a6e8ae7eeba (diff)
cdefs.h: Use __deprecated__ instead of deprecated
Use the form with underscores to define the '__deprecated' macro to avoid collisions with potentially defined macros, as suggested in gcc docs (https://gcc.gnu.org/onlinedocs/gcc/Attribute-Syntax.html#Attribute-Syntax). Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
-rw-r--r--include/stdlib/sys/cdefs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdlib/sys/cdefs.h b/include/stdlib/sys/cdefs.h
index e6960f68..70c09fdb 100644
--- a/include/stdlib/sys/cdefs.h
+++ b/include/stdlib/sys/cdefs.h
@@ -283,7 +283,7 @@
#if __GNUC_PREREQ__(3, 1)
#define __noinline __attribute__ ((__noinline__))
-#define __deprecated __attribute__ ((deprecated))
+#define __deprecated __attribute__ ((__deprecated__))
#else
#define __noinline
#define __deprecated