summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2012-10-15 02:16:46 -0500
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2012-10-16 02:35:19 -0500
commitc0d697ffddf14117541e7021c3b80b25c4536f6f (patch)
tree8944d7200d6ad58be261793fce433221072f30e0
parentc76d51423d6a6afe4f0c8fc6f863ba97d202184b (diff)
Do not use visibility attributes on MinGW
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Reviewed-by: Colin Harrison <colin.harrison@virgin.net> Tested-by: Colin Harrison <colin.harrison@virgin.net>
-rw-r--r--Xfuncproto.h.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xfuncproto.h.in b/Xfuncproto.h.in
index 3eac5d5..8256fec 100644
--- a/Xfuncproto.h.in
+++ b/Xfuncproto.h.in
@@ -83,7 +83,7 @@ in this Software without prior written authorization from The Open Group.
#endif /* GNUC >= 4 */
/* Added in X11R6.9, so available in any version of modular xproto */
-#if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__CYGWIN__)
+#if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__CYGWIN__) && !defined(__MINGW32__)
# define _X_EXPORT __attribute__((visibility("default")))
# define _X_HIDDEN __attribute__((visibility("hidden")))
# define _X_INTERNAL __attribute__((visibility("internal")))