Module Name: src
Committed By: christos
Date: Fri Dec 4 20:38:44 UTC 2020
Modified Files:
src/sys/sys: cdefs.h
Log Message:
add __null_sentinel (from FreeBSD)
To generate a diff of this commit:
cvs rdiff -u -r1.154 -r1.155 src/sys/sys/cdefs.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/cdefs.h
diff -u src/sys/sys/cdefs.h:1.154 src/sys/sys/cdefs.h:1.155
--- src/sys/sys/cdefs.h:1.154 Wed Apr 22 05:23:21 2020
+++ src/sys/sys/cdefs.h Fri Dec 4 15:38:44 2020
@@ -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