• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/common/libva


Commit MetaInfo

Revisiondffab7e47182aa3e4698ad4830b83e7fc9d4536c (tree)
Time2017-09-27 13:48:16
AuthorMark Thompson <sw@jkqx...>
CommiterXiang, Haihao

Log Message

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>

Change Summary

Incremental Difference

--- a/va/va.h
+++ b/va/va.h
@@ -86,6 +86,18 @@
8686 extern "C" {
8787 #endif
8888
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+
89101 /**
90102 * \mainpage Video Acceleration (VA) API
91103 *