Source-Changes-HG archive

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

[src/trunk]: src/include Expose properly vfwscanf and friends for POSIX_SOURC...



details:   https://anonhg.NetBSD.org/src/rev/22c86d5a0531
branches:  trunk
changeset: 791490:22c86d5a0531
user:      degroote <degroote%NetBSD.org@localhost>
date:      Thu Nov 21 09:09:52 2013 +0000

description:
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 6e75e8444a7d -r 22c86d5a0531 include/wchar.h
--- a/include/wchar.h   Wed Nov 20 23:44:23 2013 +0000
+++ b/include/wchar.h   Thu Nov 21 09:09:52 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wchar.h,v 1.39 2013/08/19 08:03:33 joerg Exp $ */
+/*     $NetBSD: wchar.h,v 1.40 2013/11/21 09:09:52 degroote 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