summaryrefslogtreecommitdiffstats
path: root/libcxx/include/cstdio
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-10-06 22:03:22 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-10-06 22:03:22 +0000
commit1607bb38b61a889128c014f1e51cf4465512aa04 (patch)
tree301b0e1be4a74427733c5021f0e3b68201a0d9ad /libcxx/include/cstdio
parent4b81795c2a6cd1ef4466167821ce287826ac6eae (diff)
downloadbcm5719-llvm-1607bb38b61a889128c014f1e51cf4465512aa04.tar.gz
bcm5719-llvm-1607bb38b61a889128c014f1e51cf4465512aa04.zip
Remove unnecessary inline functions capturing the contents of C library macros.
The C standard requires that these be provided as functions even if they're also provided as macros, and a strict reading of the C++ standard library rules suggests that (for instance) &::isdigit == &::std::isdigit, so these wrappers are technically non-conforming. llvm-svn: 249475
Diffstat (limited to 'libcxx/include/cstdio')
-rw-r--r--libcxx/include/cstdio25
1 files changed, 0 insertions, 25 deletions
diff --git a/libcxx/include/cstdio b/libcxx/include/cstdio
index d8ba6c2ef38..61985d60363 100644
--- a/libcxx/include/cstdio
+++ b/libcxx/include/cstdio
@@ -108,36 +108,11 @@ void perror(const char* s);
#include "support/win32/support.h"
#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
-
-#ifdef clearerr
-inline _LIBCPP_INLINE_VISIBILITY void __libcpp_clearerr(FILE* __stream) { return clearerr(__stream); }
#undef clearerr
-inline _LIBCPP_INLINE_VISIBILITY void clearerr(FILE* __stream) { return __libcpp_clearerr(__stream); }
-#endif // clearerr
-
-#ifdef feof
-inline _LIBCPP_INLINE_VISIBILITY int __libcpp_feof(FILE* __stream) { return feof(__stream); }
#undef feof
-inline _LIBCPP_INLINE_VISIBILITY int feof(FILE* __stream) { return __libcpp_feof(__stream); }
-#endif // feof
-
-#ifdef ferror
-inline _LIBCPP_INLINE_VISIBILITY int __libcpp_ferror(FILE* __stream) { return ferror(__stream); }
#undef ferror
-inline _LIBCPP_INLINE_VISIBILITY int ferror(FILE* __stream) { return __libcpp_ferror(__stream); }
-#endif // ferror
-
_LIBCPP_BEGIN_NAMESPACE_STD
using ::FILE;
OpenPOWER on IntegriCloud