projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3213c10
)
write: Fix a C++ test error on mingw.
author
Bruno Haible
<bruno@clisp.org>
Sat, 10 Apr 2010 19:11:00 +0000
(21:11 +0200)
committer
Bruno Haible
<bruno@clisp.org>
Sat, 10 Apr 2010 19:11:00 +0000
(21:11 +0200)
ChangeLog
patch
|
blob
|
history
lib/unistd.in.h
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index d347b26bc7e83c194e5a80df2bc31d2c6f47067d..b8435cd3de1429af6c2cbd5724cc8379b7f31450 100644
(file)
--- 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.
2010-04-10 Bruno Haible <bruno@clisp.org>
vasnprintf test: Reduce code duplication.
diff --git
a/lib/unistd.in.h
b/lib/unistd.in.h
index 8e5ff9eac10d499d7943e73f12aad78a4fc15df4..7302d6d3e1a54bc138d140367d61dc263a855a03 100644
(file)
--- a/
lib/unistd.in.h
+++ b/
lib/unistd.in.h
@@
-1268,7
+1268,10
@@
_GL_FUNCDECL_RPL (write, ssize_t, (int fd, const void *buf, size_t count)
_GL_ARG_NONNULL ((2)));
_GL_CXXALIAS_RPL (write, ssize_t, (int fd, const void *buf, size_t count));
# else
_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
# endif
_GL_CXXALIASWARN (write);
#endif