Module Name:    src
Committed By:   joerg
Date:           Fri May 23 16:48:52 UTC 2014

Modified Files:
        src/include: stdio.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/include/stdio.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/stdio.h
diff -u src/include/stdio.h:1.89 src/include/stdio.h:1.90
--- src/include/stdio.h:1.89	Mon May 19 16:04:10 2014
+++ src/include/stdio.h	Fri May 23 16:48:52 2014
@@ -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 @@ static __inline int __sputc(int _c, FILE
 #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 @@ int	 dprintf(int, const char * __restric
 
 #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)

Reply via email to