diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-02-01 11:32:10 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-02-01 11:32:10 (GMT) |
commit | 2f85b7bb79cfbc0095934aba3bb3c78e0974eeb9 (patch) | |
tree | d01c644b3b7fb86208a5e8c5302e9b6c0eec2fdb /xlib | |
parent | ad747d4f1eeb6b1bc5029c319b13a1c1c61a9df4 (diff) | |
download | tk-2f85b7bb79cfbc0095934aba3bb3c78e0974eeb9.zip tk-2f85b7bb79cfbc0095934aba3bb3c78e0974eeb9.tar.gz tk-2f85b7bb79cfbc0095934aba3bb3c78e0974eeb9.tar.bz2 |
Update Xfuncproto.h (add _X_NONSTRING, not used anywhere yet)
Diffstat (limited to 'xlib')
-rw-r--r-- | xlib/X11/Xfuncproto.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xlib/X11/Xfuncproto.h b/xlib/X11/Xfuncproto.h index 89bc96f..f689073 100644 --- a/xlib/X11/Xfuncproto.h +++ b/xlib/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_ */ |