From f4983b194d8a13468d2b381c1b572144d15329d2 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 4 May 2016 14:14:56 -0400 Subject: glapi: Define PURE for Sun Studio as well Reviewed-by: Eric Anholt Signed-off-by: Adam Jackson --- src/mapi/glapi/gen/gl_XML.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mapi/glapi/gen/gl_XML.py') diff --git a/src/mapi/glapi/gen/gl_XML.py b/src/mapi/glapi/gen/gl_XML.py index 4f35343f826..8036a0281fa 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 -- cgit v1.2.3