projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ef6d31
)
gallium: Add a define for deprecated function attribute.
author
José Fonseca
<jfonseca@vmware.com>
Thu, 4 Feb 2010 18:24:17 +0000
(18:24 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 4 Feb 2010 18:24:17 +0000
(18:24 +0000)
src/gallium/include/pipe/p_compiler.h
patch
|
blob
|
history
diff --git
a/src/gallium/include/pipe/p_compiler.h
b/src/gallium/include/pipe/p_compiler.h
index 84956a2ba411e3ee0178f5da0738cd1f8c6cd2c5..c7d35074948072e0c6609a9f48ffbf55d9d54490 100644
(file)
--- a/
src/gallium/include/pipe/p_compiler.h
+++ b/
src/gallium/include/pipe/p_compiler.h
@@
-145,6
+145,14
@@
typedef unsigned char boolean;
+#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
+#define PIPE_DEPRECATED __attribute__((__deprecated__))
+#else
+#define PIPE_DEPRECATED
+#endif
+
+
+
/* Macros for data alignment. */
#if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))