summaryrefslogtreecommitdiff
path: root/xserver/glx/indirect_size_get.h
diff options
context:
space:
mode:
Diffstat (limited to 'xserver/glx/indirect_size_get.h')
-rw-r--r--xserver/glx/indirect_size_get.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xserver/glx/indirect_size_get.h b/xserver/glx/indirect_size_get.h
index 4fcb55b4e..378baa673 100644
--- a/xserver/glx/indirect_size_get.h
+++ b/xserver/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