From 7e9b67846448ee0b5897c2ab403d497e2b77059e Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 5 May 2014 12:53:47 +0000 Subject: * libc/include/stdio.h: Declare various C99 printf/scanf functions for C++11, too. --- newlib/libc/include/stdio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libc/include/stdio.h') diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h index 95a6d4973..4576f2c69 100644 --- a/newlib/libc/include/stdio.h +++ b/newlib/libc/include/stdio.h @@ -232,7 +232,7 @@ int _EXFUN(fseeko, (FILE *, off_t, int)); off_t _EXFUN(ftello, ( FILE *)); #endif #endif -#if !defined(__STRICT_ANSI__) || (__STDC_VERSION__ >= 199901L) +#if !defined(__STRICT_ANSI__) || (__STDC_VERSION__ >= 199901L) || (__cplusplus >= 201103L) #ifndef _REENT_ONLY int _EXFUN(asiprintf, (char **, const char *, ...) _ATTRIBUTE ((__format__ (__printf__, 2, 3)))); -- cgit v1.2.3