diff options
Diffstat (limited to 'lib/stdlib.in.h')
| -rw-r--r-- | lib/stdlib.in.h | 30 | 
1 files changed, 30 insertions, 0 deletions
| diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index 62d18c62811..2697a4bd1db 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -274,6 +274,21 @@ _GL_WARN_ON_USE (malloc, "malloc is not POSIX compliant everywhere - "                   "use gnulib module malloc-posix for portability");  #endif +/* Convert a multibyte character to a wide character.  */ +#if @GNULIB_MBTOWC@ +# if @REPLACE_MBTOWC@ +#  if !(defined __cplusplus && defined GNULIB_NAMESPACE) +#   undef mbtowc +#   define mbtowc rpl_mbtowc +#  endif +_GL_FUNCDECL_RPL (mbtowc, int, (wchar_t *pwc, const char *s, size_t n)); +_GL_CXXALIAS_RPL (mbtowc, int, (wchar_t *pwc, const char *s, size_t n)); +# else +_GL_CXXALIAS_SYS (mbtowc, int, (wchar_t *pwc, const char *s, size_t n)); +# endif +_GL_CXXALIASWARN (mbtowc); +#endif +  #if @GNULIB_MKDTEMP@  /* Create a unique temporary directory from TEMPLATE.     The last six characters of TEMPLATE must be "XXXXXX"; @@ -723,6 +738,21 @@ _GL_WARN_ON_USE (unsetenv, "unsetenv is unportable - "  # endif  #endif +/* Convert a wide character to a multibyte character.  */ +#if @GNULIB_WCTOMB@ +# if @REPLACE_WCTOMB@ +#  if !(defined __cplusplus && defined GNULIB_NAMESPACE) +#   undef wctomb +#   define wctomb rpl_wctomb +#  endif +_GL_FUNCDECL_RPL (wctomb, int, (char *s, wchar_t wc)); +_GL_CXXALIAS_RPL (wctomb, int, (char *s, wchar_t wc)); +# else +_GL_CXXALIAS_SYS (wctomb, int, (char *s, wchar_t wc)); +# endif +_GL_CXXALIASWARN (wctomb); +#endif +  #endif /* _GL_STDLIB_H */  #endif /* _GL_STDLIB_H */ | 
