summaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-12-01 23:07:08 +0000
committerJose Fonseca <jfonseca@vmware.com>2015-12-02 07:51:04 +0000
commit56aff6bb4eafe35ba301f5d60027377abc4cfd9f (patch)
treeab4fb5d62248754462ebfc00e0197b66bec11817 /src/mapi
parent51564f04b77e6d29a888a4fbd83d96de062ac634 (diff)
downloadexternal_mesa3d-56aff6bb4eafe35ba301f5d60027377abc4cfd9f.zip
external_mesa3d-56aff6bb4eafe35ba301f5d60027377abc4cfd9f.tar.gz
external_mesa3d-56aff6bb4eafe35ba301f5d60027377abc4cfd9f.tar.bz2
Remove Sun CC specific code.
Reviewed-by: Matt Turner <mattst88@gmail.com> Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/mapi')
-rw-r--r--src/mapi/glapi/gen/gl_XML.py6
-rw-r--r--src/mapi/glapi/glapi.h2
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 67aba81..2e7123e 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 673295b..f269b17 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