Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/xorgproto/dist/include/X11 merge xorgproto 20...



details:   https://anonhg.NetBSD.org/xsrc/rev/a036a0407b05
branches:  trunk
changeset: 7516:a036a0407b05
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Jun 19 04:36:05 2023 +0000

description:
merge xorgproto 2023.02

diffstat:

 external/mit/xorgproto/dist/include/X11/Xfuncproto.h |  13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diffs (23 lines):

diff -r 6dddabaa1794 -r a036a0407b05 external/mit/xorgproto/dist/include/X11/Xfuncproto.h
--- a/external/mit/xorgproto/dist/include/X11/Xfuncproto.h      Mon Jun 19 04:30:50 2023 +0000
+++ b/external/mit/xorgproto/dist/include/X11/Xfuncproto.h      Mon Jun 19 04:36:05 2023 +0000
@@ -163,19 +163,6 @@ in this Software without prior written a
 # define _X_ATTRIBUTE_PRINTF(x,y)
 #endif
 
-/* requires xproto >= 7.0.22 - since this uses either gcc or C99 variable
-   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 */
-#define _X_NONNULL(...)  /* */
-#endif
-
 /* requires xproto >= 7.0.22 */
 #if __has_attribute(__unused__) \
     || defined(__GNUC__) &&  ((__GNUC__ * 100 + __GNUC_MINOR__) >= 205)



Home | Main Index | Thread Index | Old Index