From 5f0704b66cea73cf2ab148ec4cff645cc301fd8c Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 31 Aug 2017 14:07:23 +0200 Subject: libio: Assume _LIBC, weak_alias, errno, (__set_)errno &c are defined Do not define _POSIX_SOURCE. --- libio/iogetwline.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'libio/iogetwline.c') diff --git a/libio/iogetwline.c b/libio/iogetwline.c index e60a590cc4..535f90339e 100644 --- a/libio/iogetwline.c +++ b/libio/iogetwline.c @@ -28,10 +28,6 @@ #include #include -#ifdef _LIBC -# define wmemcpy __wmemcpy -#endif - _IO_size_t _IO_getwline (_IO_FILE *fp, wchar_t *buf, _IO_size_t n, wint_t delim, int extract_delim) @@ -98,12 +94,12 @@ _IO_getwline_info (_IO_FILE *fp, wchar_t *buf, _IO_size_t n, wint_t delim, if (extract_delim > 0) ++len; } - wmemcpy ((void *) ptr, (void *) fp->_wide_data->_IO_read_ptr, - len); + __wmemcpy ((void *) ptr, (void *) fp->_wide_data->_IO_read_ptr, + len); fp->_wide_data->_IO_read_ptr = t; return old_len + len; } - wmemcpy ((void *) ptr, (void *) fp->_wide_data->_IO_read_ptr, len); + __wmemcpy ((void *) ptr, (void *) fp->_wide_data->_IO_read_ptr, len); fp->_wide_data->_IO_read_ptr += len; ptr += len; n -= len; -- cgit v1.2.1