diff options
author | Jose Fonseca <[email protected]> | 2015-12-01 23:07:08 +0000 |
---|---|---|
committer | Jose Fonseca <[email protected]> | 2015-12-02 07:51:04 +0000 |
commit | 56aff6bb4eafe35ba301f5d60027377abc4cfd9f (patch) | |
tree | ab4fb5d62248754462ebfc00e0197b66bec11817 /src/mapi/glapi | |
parent | 51564f04b77e6d29a888a4fbd83d96de062ac634 (diff) |
Remove Sun CC specific code.
Reviewed-by: Matt Turner <[email protected]>
Acked-by: Alan Coopersmith <[email protected]>
Diffstat (limited to 'src/mapi/glapi')
-rw-r--r-- | src/mapi/glapi/gen/gl_XML.py | 6 | ||||
-rw-r--r-- | src/mapi/glapi/glapi.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mapi/glapi/gen/gl_XML.py b/src/mapi/glapi/gen/gl_XML.py index 67aba81a74e..2e7123ec406 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__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)) + print """# if defined(__GNUC__) # define PURE __attribute__((pure)) # else # define PURE @@ -223,7 +223,7 @@ class gl_print_base(object): """ self.undef_list.append(S) - print """# if (defined(__GNUC__) && !defined(__CYGWIN__) && !defined(__MINGW32__)) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590) && defined(__ELF__)) + print """# if defined(__GNUC__) && !defined(__CYGWIN__) && !defined(__MINGW32__) # define %s __attribute__((visibility("%s"))) # else # define %s @@ -243,7 +243,7 @@ class gl_print_base(object): """ self.undef_list.append("NOINLINE") - print """# if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)) + print """# if defined(__GNUC__) # define NOINLINE __attribute__((noinline)) # else # define NOINLINE diff --git a/src/mapi/glapi/glapi.h b/src/mapi/glapi/glapi.h index 673295bca46..f269b1701bc 100644 --- a/src/mapi/glapi/glapi.h +++ b/src/mapi/glapi/glapi.h @@ -61,7 +61,7 @@ extern "C" { # else # define _GLAPI_EXPORT __declspec(dllimport) # endif -# elif defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)) +# elif defined(__GNUC__) # define _GLAPI_EXPORT __attribute__((visibility("default"))) # else # define _GLAPI_EXPORT |