diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-08-31 14:07:23 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-08-31 14:48:25 +0200 |
commit | 5f0704b66cea73cf2ab148ec4cff645cc301fd8c (patch) | |
tree | 13817263f75cf2e72b3bc0ce9abafa4b9b7398e8 /libio/iogetwline.c | |
parent | 5129873a8e913e207e5f7b4b521c72f41a1bbf6d (diff) | |
download | glibc-5f0704b66cea73cf2ab148ec4cff645cc301fd8c.tar.gz |
libio: Assume _LIBC, weak_alias, errno, (__set_)errno &c are defined
Do not define _POSIX_SOURCE.
Diffstat (limited to 'libio/iogetwline.c')
-rw-r--r-- | libio/iogetwline.c | 10 |
1 files changed, 3 insertions, 7 deletions
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 <string.h> #include <wchar.h> -#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; |