[git commit] cstdio: Add undef for four functions

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Fri Oct 4 10:36:31 UTC 2019


commit: https://git.uclibc.org/uClibc++/commit/?id=3791a7b3b5f6a4c806929d30671058fe105c61ef
branch: https://git.uclibc.org/uClibc++/commit/?id=refs/heads/master

When compiling with uClibc-ng, these functions get defined as macros and
become unavailable for std.

Fixes programs that use the std versions of these functions.

This matches libstdcpp behavior.

Signed-off-by: Rosen Penev <rosenp at gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 include/cstdio | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/cstdio b/include/cstdio
index f959ff5..0a42458 100644
--- a/include/cstdio
+++ b/include/cstdio
@@ -21,6 +21,15 @@
 #ifndef __HEADER_CSTDIO
 #define __HEADER_CSTDIO 1
 
+#undef clearerr
+#undef feof
+#undef ferror
+#undef fgetc
+#undef fputc
+#undef getc
+#undef getchar
+#undef putc
+#undef putchar
 
 namespace std{
 	using ::FILE;


More information about the uClibc-cvs mailing list