cdefs: use more accurate GCC version for the deprecated attribute.

The message argument in the "deprecated" attribute was introduced in GCC 4.5 *.
Use the accurate version number for consistency, as done already with other
attributes.

* https://gcc.gnu.org/onlinedocs/gcc-4.5.0/gcc/Function-Attributes.html
This commit is contained in:
Pedro F. Giffuni 2019-12-15 01:56:56 +00:00
parent 727b66b6d9
commit d5dfb2fbc8

View File

@ -468,7 +468,7 @@
#define __hidden
#endif
#if __GNUC__ > 4 || defined(__clang__)
#if __GNUC_PREREQ__(4, 5) || defined(__clang__)
#define __deprecated(m) __attribute__((__deprecated__(m)))
#elif defined(__GNUC__)
#define __deprecated(m) __attribute__((__deprecated__))