diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2020-08-16 17:55:22 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2020-10-10 14:22:24 -0700 |
commit | 50671520ef98d68d4eb26e09d5249de321b8fef9 (patch) | |
tree | ff4b5e77c32124f0fc6875d20d07ab8ef454b88a /include/X11 | |
parent | e4d9ffdd51b15b1c9441086f7a86bb50a9f7b555 (diff) |
Xfuncproto: define _X_NONSTRING for __attribute__((nonstring))
Bumps xproto version to 7.0.33
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'include/X11')
-rw-r--r-- | include/X11/Xfuncproto.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/X11/Xfuncproto.h b/include/X11/Xfuncproto.h index 89bc96f..f689073 100644 --- a/include/X11/Xfuncproto.h +++ b/include/X11/Xfuncproto.h @@ -218,4 +218,12 @@ in this Software without prior written authorization from The Open Group. # define _X_NOTSAN #endif +/* Mark a char array/pointer as not containing a NUL-terminated string */ +/* requires xproto >= 7.0.33 */ +#if __has_attribute(nonstring) +# define _X_NONSTRING __attribute__((nonstring)) +#else +# define _X_NONSTRING +#endif + #endif /* _XFUNCPROTO_H_ */ |