summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2014-05-23 16:48:52 +0000
committerjoerg <joerg@NetBSD.org>2014-05-23 16:48:52 +0000
commitb9eeea940e0be738fe7f029bdbb8469c1074992d (patch)
tree8d566bd842bd164a739a451b572a5686b9ea3c3c /include
parent393b8c8f8f13f4c79c32a212236ab5c029a4f10f (diff)
Fix use of getline and friends in C++ code.
Diffstat (limited to 'include')
-rw-r--r--include/stdio.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/stdio.h b/include/stdio.h
index e2c510b6c72..4a0b618c0ea 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -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 *_p) {
#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 * __restrict, ...)
#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)