glapi: Define PURE for Sun Studio as well
authorAdam Jackson <ajax@redhat.com>
Wed, 4 May 2016 18:14:56 +0000 (14:14 -0400)
committerAdam Jackson <ajax@redhat.com>
Tue, 17 May 2016 19:04:56 +0000 (15:04 -0400)
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Adam Jackson <ajax@redhat.com>
src/mapi/glapi/gen/gl_XML.py

index 4f35343f82616b1ab8aefe818f26d23ed951f393..8036a0281fa95905940f475041548c031f902e32 100644 (file)
@@ -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