From 50671520ef98d68d4eb26e09d5249de321b8fef9 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 16 Aug 2020 17:55:22 -0700 Subject: Xfuncproto: define _X_NONSTRING for __attribute__((nonstring)) Bumps xproto version to 7.0.33 Signed-off-by: Alan Coopersmith Reviewed-by: Matt Turner --- include/X11/Xfuncproto.h | 8 ++++++++ xproto.pc.in | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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_ */ diff --git a/xproto.pc.in b/xproto.pc.in index 9274236..9e288c7 100644 --- a/xproto.pc.in +++ b/xproto.pc.in @@ -4,5 +4,5 @@ includex11dir=@includedir@/X11 Name: Xproto Description: Xproto headers -Version: 7.0.32 +Version: 7.0.33 Cflags: -I${includedir} -- cgit v1.2.3