From: José Fonseca Date: Sat, 23 Apr 2011 11:14:39 +0000 (+0100) Subject: mapi/glapi: Avoid warnings about visibility being unsupported on MinGW. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c89cca648d4ef19dceb0bf8105c2fb4a9761497c;p=mesa.git mapi/glapi: Avoid warnings about visibility being unsupported on MinGW. --- 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 diff --git a/src/mapi/glapi/glapitemp.h b/src/mapi/glapi/glapitemp.h index 4eb4861597b..0f49b334aa8 100644 --- a/src/mapi/glapi/glapitemp.h +++ b/src/mapi/glapi/glapitemp.h @@ -27,7 +27,7 @@ */ -# if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)) && defined(__ELF__) +# if (defined(__GNUC__) && !defined(__CYGWIN__) && !defined(__MINGW32__)) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590) && defined(__ELF__)) # define HIDDEN __attribute__((visibility("hidden"))) # else # define HIDDEN