diff options
author | Bruno Haible <bruno@clisp.org> | 2019-11-24 20:12:02 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-11-24 20:12:02 +0100 |
commit | ff66f981a9c19ee7644a55faf873f6ba4e89bdc0 (patch) | |
tree | a15db4f720e0894b42da43f54ee94c7adc15f2da /lib/wchar.in.h | |
parent | df8452e776ee1e1374c4358d5df4c4f8e8440418 (diff) | |
download | gnulib-ff66f981a9c19ee7644a55faf873f6ba4e89bdc0.tar.gz |
Fix errors in C++ mode on mingw.
* lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
instead of _GL_CXXALIAS_SYS.
* lib/signal.in.h (pthread_sigmask): Likewise.
* lib/spawn.in.h (posix_spawn_file_actions_addopen,
posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
Likewise.
* lib/wchar.in.h (btowc): Likewise.
Diffstat (limited to 'lib/wchar.in.h')
-rw-r--r-- | lib/wchar.in.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/wchar.in.h b/lib/wchar.in.h index 9807f6069a..043a592495 100644 --- a/lib/wchar.in.h +++ b/lib/wchar.in.h @@ -161,7 +161,8 @@ _GL_CXXALIAS_RPL (btowc, wint_t, (int c)); # if !@HAVE_BTOWC@ _GL_FUNCDECL_SYS (btowc, wint_t, (int c) _GL_ATTRIBUTE_PURE); # endif -_GL_CXXALIAS_SYS (btowc, wint_t, (int c)); +/* Need to cast, because on mingw, the return type is 'unsigned short'. */ +_GL_CXXALIAS_SYS_CAST (btowc, wint_t, (int c)); # endif # if __GLIBC__ >= 2 _GL_CXXALIASWARN (btowc); |