hardware/intel/common/libva
修订版 | dffab7e47182aa3e4698ad4830b83e7fc9d4536c (tree) |
---|---|
时间 | 2017-09-27 13:48:16 |
作者 | Mark Thompson <sw@jkqx...> |
Commiter | Xiang, Haihao |
Add a macro to indicate deprecation
This will generate a warning on gcc and compatible (clang, icc),
and do nothing with other compilers. There is a separate macro
for enum variables, because gcc did not support deprecating them
until version 6.
Signed-off-by: Mark Thompson <sw@jkqxz.net>
@@ -86,6 +86,18 @@ | ||
86 | 86 | extern "C" { |
87 | 87 | #endif |
88 | 88 | |
89 | +#ifdef __GNUC__ | |
90 | +#define va_deprecated __attribute__((deprecated)) | |
91 | +#if __GNUC__ >= 6 | |
92 | +#define va_deprecated_enum va_deprecated | |
93 | +#else | |
94 | +#define va_deprecated_enum | |
95 | +#endif | |
96 | +#else | |
97 | +#define va_deprecated | |
98 | +#define va_deprecated_enum | |
99 | +#endif | |
100 | + | |
89 | 101 | /** |
90 | 102 | * \mainpage Video Acceleration (VA) API |
91 | 103 | * |