[PATCH] xproto: Cygwin GCC does not support visibility attributes

Yaakov (Cygwin/X) yselkowitz at users.sourceforge.net
Tue Oct 13 14:51:14 PDT 2009


From: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>

---
 Xfuncproto.h.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Xfuncproto.h.in b/Xfuncproto.h.in
index 0843491..afdd95b 100644
--- a/Xfuncproto.h.in
+++ b/Xfuncproto.h.in
@@ -83,7 +83,7 @@ in this Software without prior written authorization from The Open Group.
 # define _X_ATTRIBUTE_PRINTF(x,y)
 #endif /* GNUC >= 4 */
 
-#if defined(__GNUC__) && (__GNUC__ >= 4)
+#if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__CYGWIN__)
 # define _X_EXPORT      __attribute__((visibility("default")))
 # define _X_HIDDEN      __attribute__((visibility("hidden")))
 # define _X_INTERNAL    __attribute__((visibility("internal")))
-- 
1.6.4.2



More information about the xorg-devel mailing list