aboutsummaryrefslogtreecommitdiff
path: root/libio/iogetwline.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-08-31 14:07:23 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-08-31 14:48:25 +0200
commit5f0704b66cea73cf2ab148ec4cff645cc301fd8c (patch)
tree13817263f75cf2e72b3bc0ce9abafa4b9b7398e8 /libio/iogetwline.c
parent5129873a8e913e207e5f7b4b521c72f41a1bbf6d (diff)
downloadglibc-5f0704b66cea73cf2ab148ec4cff645cc301fd8c.zip
glibc-5f0704b66cea73cf2ab148ec4cff645cc301fd8c.tar.gz
glibc-5f0704b66cea73cf2ab148ec4cff645cc301fd8c.tar.bz2
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.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/libio/iogetwline.c b/libio/iogetwline.c
index e60a590..535f903 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;