Module Name:    src
Committed By:   snj
Date:           Thu Feb 26 21:59:43 UTC 2015

Modified Files:
        src/include [netbsd-5]: wchar.h

Log Message:
Apply patch (requested by christos in ticket #1943):
Properly expose wcsto{f,ld,ll,ull} and v{fw,sw,ws}scanf when
_POSIX_C_SOURCE >= 200112L and _XOPEN_SOURCE >= 600.


To generate a diff of this commit:
cvs rdiff -u -r1.27.8.1 -r1.27.8.2 src/include/wchar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/include/wchar.h
diff -u src/include/wchar.h:1.27.8.1 src/include/wchar.h:1.27.8.2
--- src/include/wchar.h:1.27.8.1	Fri May 20 19:18:37 2011
+++ src/include/wchar.h	Thu Feb 26 21:59:43 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: wchar.h,v 1.27.8.1 2011/05/20 19:18:37 bouyer Exp $	*/
+/*	$NetBSD: wchar.h,v 1.27.8.2 2015/02/26 21:59:43 snj Exp $	*/
 
 /*-
  * Copyright (c)1999 Citrus Project,
@@ -138,7 +138,8 @@ long int wcstol(const wchar_t * __restri
 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);
 
@@ -174,7 +175,8 @@ int vwprintf(const wchar_t * __restrict,
 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, _BSD_VA_LIST_);
 int vswscanf(const wchar_t * __restrict, const wchar_t * __restrict,
     _BSD_VA_LIST_);

Reply via email to