[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg-devel
Subject: [PATCH x11proto] Xfuncproto: add _X_NONNULL
From: Jeff Smith <whydoubt () yahoo ! com>
Date: 2010-03-30 1:20:05
Message-ID: 1269912005-11769-1-git-send-email-whydoubt () yahoo ! com
[Download RAW message or body]
Signed-off-by: Jeff Smith <whydoubt@yahoo.com>
---
Xfuncproto.h.in | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/Xfuncproto.h.in b/Xfuncproto.h.in
index 96a585c..be3e052 100644
--- a/Xfuncproto.h.in
+++ b/Xfuncproto.h.in
@@ -123,4 +123,10 @@ in this Software without prior written authorization from The Open Group.
# define _X_NORETURN
#endif /* GNUC */
+#if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 303)
+# define _X_NONNULL(x) __attribute__((nonnull(x)))
+#else /* not gcc >= 3.3 */
+# define _X_NONNULL
+#endif
+
#endif /* _XFUNCPROTO_H_ */
--
1.6.0.6
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic