Source-Changes-HG archive

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

[src/netbsd-6]: src/include Pull up following revision(s) (requested by chris...



details:   https://anonhg.NetBSD.org/src/rev/333d59422737
branches:  netbsd-6
changeset: 776869:333d59422737
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Jan 16 09:36:12 2015 +0000

description:
Pull up following revision(s) (requested by christos in ticket #1231):
        include/wchar.h: revision 1.40
Expose properly vfwscanf and friends for POSIX_SOURCE >= 200112L

diffstat:

 include/wchar.h |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r fb779a21c48f -r 333d59422737 include/wchar.h
--- a/include/wchar.h   Fri Jan 16 08:41:53 2015 +0000
+++ b/include/wchar.h   Fri Jan 16 09:36:12 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wchar.h,v 1.30 2011/07/17 20:54:34 joerg Exp $ */
+/*     $NetBSD: wchar.h,v 1.30.4.1 2015/01/16 09:36:12 martin Exp $    */
 
 /*-
  * Copyright (c)1999 Citrus Project,
@@ -145,7 +145,8 @@
 double wcstod(const wchar_t * __restrict, wchar_t ** __restrict);
 
 #if defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) > 199901L || \
-    defined(_NETBSD_SOURCE)
+    defined(_NETBSD_SOURCE) || \
+       (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 600
 float wcstof(const wchar_t * __restrict, wchar_t ** __restrict);
 long double wcstold(const wchar_t * __restrict, wchar_t ** __restrict);
 
@@ -181,7 +182,8 @@
 int wprintf(const wchar_t * __restrict, ...);
 int wscanf(const wchar_t * __restrict, ...);
 #if defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) > 199901L || \
-    defined(_NETBSD_SOURCE)
+    defined(_NETBSD_SOURCE) || \
+       (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 600
 int vfwscanf(FILE * __restrict, const wchar_t * __restrict, __va_list);
 int vswscanf(const wchar_t * __restrict, const wchar_t * __restrict,
     __va_list);



Home | Main Index | Thread Index | Old Index