summaryrefslogtreecommitdiffstats
path: root/src/mapi/glapi/gen
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-04-23 12:14:39 +0100
committerJosé Fonseca <[email protected]>2011-04-23 12:14:39 +0100
commitc89cca648d4ef19dceb0bf8105c2fb4a9761497c (patch)
tree49d4cf1620573a73557f5794685c31f372d50882 /src/mapi/glapi/gen
parentabda64efce73c18d49c74e5be946b2825ba82cba (diff)
mapi/glapi: Avoid warnings about visibility being unsupported on MinGW.
Diffstat (limited to 'src/mapi/glapi/gen')
-rw-r--r--src/mapi/glapi/gen/gl_XML.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/gl_XML.py b/src/mapi/glapi/gen/gl_XML.py
index 660c8cfb711..4d414e8b0f8 100644
--- a/src/mapi/glapi/gen/gl_XML.py
+++ b/src/mapi/glapi/gen/gl_XML.py
@@ -224,7 +224,7 @@ class gl_print_base:
"""
self.undef_list.append(S)
- print """# if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)) && defined(__ELF__)
+ print """# if (defined(__GNUC__) && !defined(__CYGWIN__) && !defined(__MINGW32__)) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590) && defined(__ELF__))
# define %s __attribute__((visibility("%s")))
# else
# define %s