From 4665a3d6481c82b1d9c18a89bf776eac0edadd3a Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 24 Sep 2020 03:16:03 -0700 Subject: [PATCH] cstdio:Fixed compile error with CONFIG_STDIO_DISABLE_BUFFERING lit. Resolves compiler error introduced by 57dfb9 when using cpp with CONFIG_STDIO_DISABLE_BUFFERING lit. NuttX/nuttx/include/cxx/cstdio:79:11: error: '::setbuf' has not been declared using ::setbuf; --- include/cxx/cstdio | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/cxx/cstdio b/include/cxx/cstdio index 783227f5b3..ad15570ea8 100644 --- a/include/cxx/cstdio +++ b/include/cxx/cstdio @@ -76,8 +76,10 @@ namespace std using ::fwrite; using ::gets; using ::gets_s; +#ifndef CONFIG_STDIO_DISABLE_BUFFERING using ::setbuf; using ::setvbuf; +#endif using ::ungetc; // Operations on the stdout stream, buffers, paths, and the whole printf-family