[Midnightbsd-cvs] src [10680] trunk/include: visibility

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Jun 9 15:50:05 EDT 2018


Revision: 10680
          http://svnweb.midnightbsd.org/src/?rev=10680
Author:   laffer1
Date:     2018-06-09 15:50:05 -0400 (Sat, 09 Jun 2018)
Log Message:
-----------
visibility

Modified Paths:
--------------
    trunk/include/strings.h
    trunk/include/termios.h
    trunk/include/tgmath.h

Modified: trunk/include/strings.h
===================================================================
--- trunk/include/strings.h	2018-06-09 19:49:39 UTC (rev 10679)
+++ trunk/include/strings.h	2018-06-09 19:50:05 UTC (rev 10680)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
 /*-
  * Copyright (c) 2002 Mike Barcroft <mike at FreeBSD.org>
  * All rights reserved.
@@ -23,7 +24,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $MidnightBSD$
+ * $FreeBSD: stable/10/include/strings.h 267465 2014-06-14 02:57:40Z pfg $
  */
 
 #ifndef _STRINGS_H_
@@ -59,6 +60,10 @@
 #endif
 int	 strcasecmp(const char *, const char *) __pure;
 int	 strncasecmp(const char *, const char *, size_t) __pure;
+
+#if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_)
+#include <xlocale/_strings.h>
+#endif
 __END_DECLS
 
 #endif /* _STRINGS_H_ */

Modified: trunk/include/termios.h
===================================================================
--- trunk/include/termios.h	2018-06-09 19:49:39 UTC (rev 10679)
+++ trunk/include/termios.h	2018-06-09 19:50:05 UTC (rev 10680)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
 /*-
  * Copyright (c) 1988, 1989, 1993, 1994
  *	The Regents of the University of California.  All rights reserved.
@@ -27,7 +28,7 @@
  * SUCH DAMAGE.
  *
  *	@(#)termios.h	8.3 (Berkeley) 3/28/94
- * $MidnightBSD$
+ * $FreeBSD: stable/10/include/termios.h 319653 2017-06-07 11:43:36Z kib $
  */
 
 #ifndef _TERMIOS_H_
@@ -42,12 +43,12 @@
 #define	_PID_T_DECLARED
 #endif
 
-#ifndef _POSIX_SOURCE
+#if __BSD_VISIBLE
 #define	OXTABS		TAB3
 #define	MDMBUF		CCAR_OFLOW
 #endif 
 
-#ifndef _POSIX_SOURCE
+#if __BSD_VISIBLE
 #define	CCEQ(val, c)	((c) == (val) && (val) != _POSIX_VDISABLE)
 #endif
 
@@ -57,7 +58,7 @@
 #define	TCSANOW		0		/* make change immediate */
 #define	TCSADRAIN	1		/* drain output, then change */
 #define	TCSAFLUSH	2		/* drain output, flush input */
-#ifndef _POSIX_SOURCE
+#if __BSD_VISIBLE
 #define	TCSASOFT	0x10		/* flag - don't alter h.w. state */
 #endif
 
@@ -95,7 +96,7 @@
 
 #endif /* !_TERMIOS_H_ */
 
-#ifndef _POSIX_SOURCE
+#if __BSD_VISIBLE
 #include <sys/ttycom.h>
 #include <sys/ttydefaults.h>
 #endif

Modified: trunk/include/tgmath.h
===================================================================
--- trunk/include/tgmath.h	2018-06-09 19:49:39 UTC (rev 10679)
+++ trunk/include/tgmath.h	2018-06-09 19:50:05 UTC (rev 10680)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
 /*-
  * Copyright (c) 2004 Stefan Farfeleder.
  * All rights reserved.
@@ -26,7 +27,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $MidnightBSD$
+ * $FreeBSD: stable/10/include/tgmath.h 249995 2013-04-27 21:18:34Z ed $
  */
 
 #ifndef _TGMATH_H_
@@ -60,7 +61,8 @@
  * compilers use an inefficient yet reliable version.
  */
 
-#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
+#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || \
+    __has_extension(c_generic_selections)
 #define	__tg_generic(x, cfnl, cfn, cfnf, fnl, fn, fnf)			\
 	_Generic(x,							\
 		long double _Complex: cfnl,				\



More information about the Midnightbsd-cvs mailing list