Mercurial > hg > octave-nkf > gnulib-hg
changeset 13196:670e389ef70e
write: Fix a C++ test error on mingw.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 10 Apr 2010 21:11:00 +0200 |
parents | 563239444f8f |
children | 5faa02e0b292 |
files | ChangeLog lib/unistd.in.h |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-04-10 Bruno Haible <bruno@clisp.org> + + write: Fix a C++ test error on mingw. + * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST. + 2010-04-10 Bruno Haible <bruno@clisp.org> vasnprintf test: Reduce code duplication.
--- a/lib/unistd.in.h +++ b/lib/unistd.in.h @@ -1268,7 +1268,10 @@ _GL_ARG_NONNULL ((2))); _GL_CXXALIAS_RPL (write, ssize_t, (int fd, const void *buf, size_t count)); # else -_GL_CXXALIAS_SYS (write, ssize_t, (int fd, const void *buf, size_t count)); +/* Need to cast, because on mingw, the third parameter is + unsigned int count + and the return type is 'int'. */ +_GL_CXXALIAS_SYS_CAST (write, ssize_t, (int fd, const void *buf, size_t count)); # endif _GL_CXXALIASWARN (write); #endif