aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/uclibc++/patches/002-undef-functions.patch
blob: 47fa1580f2ef10f5e5cc5b7b95eafa9da2a3572f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From 8245f62c1e7aba150f666b3c3a1dda646dee6d4b Mon Sep 17 00:00:00 2001
From: Rosen Penev <rosenp@gmail.com>
Date: Fri, 27 Sep 2019 13:12:44 -0700
Subject: [PATCH] cstdio: Add undef for four functions

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@gmail.com>
---
 include/cstdio | 9 +++++++++
 1 file changed, 9 insertions(+)

--- 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;