summaryrefslogtreecommitdiffstats
path: root/src/mapi/glapi
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2016-05-04 14:14:56 -0400
committerAdam Jackson <ajax@redhat.com>2016-05-17 15:04:56 -0400
commitf4983b194d8a13468d2b381c1b572144d15329d2 (patch)
tree4107ac5e3b71123848cb6a577b0ea1075aee4d96 /src/mapi/glapi
parentf1dd8dd6b6c0e8cb16a41231286735d5efa33c67 (diff)
downloadexternal_mesa3d-f4983b194d8a13468d2b381c1b572144d15329d2.zip
external_mesa3d-f4983b194d8a13468d2b381c1b572144d15329d2.tar.gz
external_mesa3d-f4983b194d8a13468d2b381c1b572144d15329d2.tar.bz2
glapi: Define PURE for Sun Studio as well
Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'src/mapi/glapi')
-rw-r--r--src/mapi/glapi/gen/gl_XML.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/gl_XML.py b/src/mapi/glapi/gen/gl_XML.py
index 4f35343..8036a02 100644
--- a/src/mapi/glapi/gen/gl_XML.py
+++ b/src/mapi/glapi/gen/gl_XML.py
@@ -183,7 +183,7 @@ class gl_print_base(object):
The name is also added to the file's undef_list.
"""
self.undef_list.append("PURE")
- print """# if defined(__GNUC__)
+ print """# if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
# define PURE __attribute__((pure))
# else
# define PURE