summaryrefslogtreecommitdiff
path: root/glx/indirect_size_get.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2010-01-16 21:03:00 -0800
committerAlan Coopersmith <alan.coopersmith@sun.com>2010-01-25 11:10:00 -0800
commit138d4c1670ebab435bf00627c97098a3a54b81a6 (patch)
treee7859d2b9dfc4b4040c672b9cb490c0baeaee8fe /glx/indirect_size_get.h
parent79e7b0b875634d0f9e1a95232a4e38adf617bc14 (diff)
glx: Sun compilers now support some gcc __attribute__ values
Sun cc 5.9 and later (__SUNPRO_C >= 0x590) support __attribute__ calls for aligned, always_inline, noinline, pure, const, and malloc. This commit consists of the related updates to files that were regenerated by gl_XML.py in mesa after adding the __SUNPRO_C checks to it Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com> Signed-off-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'glx/indirect_size_get.h')
-rw-r--r--glx/indirect_size_get.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/glx/indirect_size_get.h b/glx/indirect_size_get.h
index 4fcb55b4e..378baa673 100644
--- a/glx/indirect_size_get.h
+++ b/glx/indirect_size_get.h
@@ -36,7 +36,7 @@
* \author Ian Romanick <idr@us.ibm.com>
*/
-# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
+# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
# define PURE __attribute__((pure))
# else
# define PURE
@@ -48,7 +48,7 @@
# define FASTCALL
# endif
-# if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(__ELF__)
+# if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))) && defined(__ELF__)
# define INTERNAL __attribute__((visibility("internal")))
# else
# define INTERNAL