Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys add __null_sentinel (from FreeBSD)
details: https://anonhg.NetBSD.org/src/rev/14a536a7dbdc
branches: trunk
changeset: 978804:14a536a7dbdc
user: christos <christos%NetBSD.org@localhost>
date: Fri Dec 04 20:38:44 2020 +0000
description:
add __null_sentinel (from FreeBSD)
diffstat:
sys/sys/cdefs.h | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 2f220f976120 -r 14a536a7dbdc sys/sys/cdefs.h
--- a/sys/sys/cdefs.h Fri Dec 04 20:23:33 2020 +0000
+++ b/sys/sys/cdefs.h Fri Dec 04 20:38:44 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs.h,v 1.154 2020/04/22 09:23:21 rin Exp $ */
+/* $NetBSD: cdefs.h,v 1.155 2020/12/04 20:38:44 christos Exp $ */
/* * Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
@@ -270,6 +270,12 @@
#define __always_inline /* nothing */
#endif
+#if __GNUC_PREREQ__(4, 0) || defined(__lint__)
+#define __null_sentinel __attribute__((__sentinel__))
+#else
+#define __null_sentinel /* nothing */
+#endif
+
#if __GNUC_PREREQ__(4, 1) || defined(__lint__)
#define __returns_twice __attribute__((__returns_twice__))
#else
Home |
Main Index |
Thread Index |
Old Index