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:
parent
727b66b6d9
commit
d5dfb2fbc8
@ -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__))
|
||||
|
Loading…
Reference in New Issue
Block a user