summaryrefslogtreecommitdiff
path: root/src/gallium/include/pipe/p_compiler.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-02-04 18:24:17 +0000
committerJosé Fonseca <jfonseca@vmware.com>2010-02-04 18:24:17 +0000
commitb7b7ea9532055a189eb1d276301937eae39f4168 (patch)
tree7d3c63780f73b90189730ed034f4759157bc1449 /src/gallium/include/pipe/p_compiler.h
parent2ef6d311b7cba30deb3d7e38eec14cef89e7e579 (diff)
gallium: Add a define for deprecated function attribute.
Diffstat (limited to 'src/gallium/include/pipe/p_compiler.h')
-rw-r--r--src/gallium/include/pipe/p_compiler.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_compiler.h b/src/gallium/include/pipe/p_compiler.h
index 84956a2ba4..c7d3507494 100644
--- 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))