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>
extern "C" {
#endif
+#ifdef __GNUC__
+#define va_deprecated __attribute__((deprecated))
+#if __GNUC__ >= 6
+#define va_deprecated_enum va_deprecated
+#else
+#define va_deprecated_enum
+#endif
+#else
+#define va_deprecated
+#define va_deprecated_enum
+#endif
+
/**
* \mainpage Video Acceleration (VA) API
*