[Midnightbsd-cvs] src [12010] trunk/include/stddef.h: add some missing constants.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Sep 2 15:24:57 EDT 2018
Revision: 12010
http://svnweb.midnightbsd.org/src/?rev=12010
Author: laffer1
Date: 2018-09-02 15:24:56 -0400 (Sun, 02 Sep 2018)
Log Message:
-----------
add some missing constants.
Modified Paths:
--------------
trunk/include/stddef.h
Modified: trunk/include/stddef.h
===================================================================
--- trunk/include/stddef.h 2018-08-15 13:28:26 UTC (rev 12009)
+++ trunk/include/stddef.h 2018-09-02 19:24:56 UTC (rev 12010)
@@ -1,5 +1,7 @@
/* $MidnightBSD$ */
/*-
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
*
@@ -39,7 +41,10 @@
#include <sys/_null.h>
#include <sys/_types.h>
+#ifndef _PTRDIFF_T_DECLARED
typedef __ptrdiff_t ptrdiff_t;
+#define _PTRDIFF_T_DECLARED
+#endif
#if __BSD_VISIBLE
#ifndef _RUNE_T_DECLARED
@@ -60,7 +65,7 @@
#endif
#endif
-#if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L
+#if __ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L
#ifndef __CLANG_MAX_ALIGN_T_DEFINED
typedef __max_align_t max_align_t;
#define __CLANG_MAX_ALIGN_T_DEFINED
@@ -70,4 +75,12 @@
#define offsetof(type, field) __offsetof(type, field)
+#if __EXT1_VISIBLE
+/* ISO/IEC 9899:2011 K.3.3.2 */
+#ifndef _RSIZE_T_DEFINED
+#define _RSIZE_T_DEFINED
+typedef size_t rsize_t;
+#endif
+#endif /* __EXT1_VISIBLE */
+
#endif /* _STDDEF_H_ */
More information about the Midnightbsd-cvs
mailing list