Source-Changes-HG archive

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

[src/trunk]: src/include Fix use of getline and friends in C++ code.



details:   https://anonhg.NetBSD.org/src/rev/b6c5b7d13d92
branches:  trunk
changeset: 329417:b6c5b7d13d92
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri May 23 16:48:52 2014 +0000

description:
Fix use of getline and friends in C++ code.

diffstat:

 include/stdio.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r ab6cf7222be6 -r b6c5b7d13d92 include/stdio.h
--- a/include/stdio.h   Fri May 23 14:16:39 2014 +0000
+++ b/include/stdio.h   Fri May 23 16:48:52 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdio.h,v 1.89 2014/05/19 16:04:10 kleink Exp $        */
+/*     $NetBSD: stdio.h,v 1.90 2014/05/23 16:48:52 joerg Exp $ */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -505,10 +505,12 @@
 #endif /* !_ANSI_SOURCE && !__cplusplus*/
 
 #if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE)
+__BEGIN_DECLS
 int     vdprintf(int, const char * __restrict, __va_list)
                __printflike(2, 0);
 int     dprintf(int, const char * __restrict, ...)
                __printflike(2, 3);
+__END_DECLS
 #endif /* (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) */
 
 #if (_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \
@@ -522,10 +524,12 @@
 
 #if (_POSIX_C_SOURCE - 0) >= 200809L || (_XOPEN_SOURCE - 0) >= 700 || \
     defined(_NETBSD_SOURCE)
+__BEGIN_DECLS
 FILE *fmemopen(void * __restrict, size_t, const char * __restrict);
 ssize_t         getdelim(char ** __restrict, size_t * __restrict, int,
            FILE * __restrict);
 ssize_t         getline(char ** __restrict, size_t * __restrict, FILE * __restrict);
+__END_DECLS
 #endif
 
 #if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE)



Home | Main Index | Thread Index | Old Index