Mesa (master): glapi: Define PURE for Sun Studio as well
Adam Jackson
ajax at kemper.freedesktop.org
Tue May 17 19:05:14 UTC 2016
Module: Mesa
Branch: master
Commit: f4983b194d8a13468d2b381c1b572144d15329d2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f4983b194d8a13468d2b381c1b572144d15329d2
Author: Adam Jackson <ajax at redhat.com>
Date: Wed May 4 14:14:56 2016 -0400
glapi: Define PURE for Sun Studio as well
Reviewed-by: Eric Anholt <eric at anholt.net>
Signed-off-by: Adam Jackson <ajax at redhat.com>
---
src/mapi/glapi/gen/gl_XML.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
More information about the mesa-commit
mailing list