aboutsummaryrefslogtreecommitdiff
path: root/X11/Xfuncproto.h.in
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-05-16 18:14:59 +0000
committermarha <marha@users.sourceforge.net>2010-05-16 18:14:59 +0000
commit98d261187099eea8112d0953778882ba3d7c9c00 (patch)
tree3675aded6d87fe25d659854141dae8dc6fd0fd24 /X11/Xfuncproto.h.in
parent0cc46df268cf3a3a3a2a25afe3a2415a4ec4193f (diff)
downloadvcxsrv-98d261187099eea8112d0953778882ba3d7c9c00.tar.gz
vcxsrv-98d261187099eea8112d0953778882ba3d7c9c00.tar.bz2
vcxsrv-98d261187099eea8112d0953778882ba3d7c9c00.zip
Updated to xproto-7.0.17
Diffstat (limited to 'X11/Xfuncproto.h.in')
-rw-r--r--X11/Xfuncproto.h.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/X11/Xfuncproto.h.in b/X11/Xfuncproto.h.in
index 0843491ee..96a585ce8 100644
--- a/X11/Xfuncproto.h.in
+++ b/X11/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")))
@@ -117,4 +117,10 @@ in this Software without prior written authorization from The Open Group.
# define _X_DEPRECATED
#endif
+#if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 205)
+# define _X_NORETURN __attribute((noreturn))
+#else
+# define _X_NORETURN
+#endif /* GNUC */
+
#endif /* _XFUNCPROTO_H_ */