glapi: Define PURE for Sun Studio as well
Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
f1dd8dd6b6
commit
f4983b194d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue