diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2016-01-03 10:32:59 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2016-01-03 10:32:59 +0000 |
commit | c4c2bf4488f219808a07fa867916edbf13815c13 (patch) | |
tree | 49f2e4009c189fb1f734fd50decd86e932ae307b /proto/x11proto/Xfuncproto.h.in | |
parent | 41b8c7652dc45b9d8a3cf524e52b337db6627ad0 (diff) |
Update to x11proto 7.0.28
Diffstat (limited to 'proto/x11proto/Xfuncproto.h.in')
-rw-r--r-- | proto/x11proto/Xfuncproto.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/proto/x11proto/Xfuncproto.h.in b/proto/x11proto/Xfuncproto.h.in index e9e5e7141..5daa83e34 100644 --- a/proto/x11proto/Xfuncproto.h.in +++ b/proto/x11proto/Xfuncproto.h.in @@ -152,6 +152,9 @@ in this Software without prior written authorization from The Open Group. argument macros, must be only used inside #ifdef _X_NONNULL guards, as many legacy X clients are compiled in C89 mode still. */ #if __has_attribute(nonnull) \ + && defined(__STDC_VERSION__) && (__STDC_VERSION__ - 0 >= 199901L) /* C99 */ +#define _X_NONNULL(...) __attribute__((nonnull(__VA_ARGS__))) +#elif __has_attribute(nonnull) \ || defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 303) #define _X_NONNULL(args...) __attribute__((nonnull(args))) #elif defined(__STDC_VERSION__) && (__STDC_VERSION__ - 0 >= 199901L) /* C99 */ |