aboutsummaryrefslogtreecommitdiff
path: root/include/cstdio
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2012-10-22 18:04:00 +0000
committerDimitry Andric <dim@FreeBSD.org>2012-10-22 18:04:00 +0000
commitea907107107132d0201e0ba377408f4e117b581c (patch)
tree955d27b98fe24102c3e5101aa117112b0d21ae33 /include/cstdio
parent43cd7615798ea22556f20bbd64cff1e0c691e1d0 (diff)
Notes
Diffstat (limited to 'include/cstdio')
-rw-r--r--include/cstdio12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/cstdio b/include/cstdio
index 2a6ec762deaef..718d2f7155165 100644
--- a/include/cstdio
+++ b/include/cstdio
@@ -103,6 +103,18 @@ void perror(const char* s);
#pragma GCC system_header
#endif
+#ifdef getc
+inline _LIBCPP_INLINE_VISIBILITY int __libcpp_getc(FILE* __stream) {return getc(__stream);}
+#undef getc
+inline _LIBCPP_INLINE_VISIBILITY int getc(FILE* __stream) {return __libcpp_getc(__stream);}
+#endif // getc
+
+#ifdef putc
+inline _LIBCPP_INLINE_VISIBILITY int __libcpp_putc(int __c, FILE* __stream) {return putc(__c, __stream);}
+#undef putc
+inline _LIBCPP_INLINE_VISIBILITY int putc(int __c, FILE* __stream) {return __libcpp_putc(__c, __stream);}
+#endif // putc
+
_LIBCPP_BEGIN_NAMESPACE_STD
using ::FILE;