diff options
author | Bruno Haible <bruno@clisp.org> | 2010-12-20 11:18:11 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-12-20 11:18:11 +0100 |
commit | 0cd67d466d51055ba258f863e8728d6a1749e93e (patch) | |
tree | a484c9e7f6d7a1359e2e4da0798b4be71b24d909 /lib/wcsrtombs.c | |
parent | c1517681700601792afc127715e93c2ce1ed3163 (diff) | |
download | gnulib-0cd67d466d51055ba258f863e8728d6a1749e93e.tar.gz |
wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
* lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
through wcrtomb.
Diffstat (limited to 'lib/wcsrtombs.c')
-rw-r--r-- | lib/wcsrtombs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/wcsrtombs.c b/lib/wcsrtombs.c index e995a9ce44..ac27e5dbae 100644 --- a/lib/wcsrtombs.c +++ b/lib/wcsrtombs.c @@ -1,5 +1,5 @@ /* Convert wide string to string. - Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2008, 2010 Free Software Foundation, Inc. Written by Bruno Haible <bruno@clisp.org>, 2008. This program is free software: you can redistribute it and/or modify @@ -22,7 +22,7 @@ extern mbstate_t _gl_wcsrtombs_state; -#if HAVE_WCSRTOMBS && !WCSRTOMBS_TERMINATION_BUG +#if HAVE_WCSRTOMBS && !WCSRTOMBS_TERMINATION_BUG && !defined GNULIB_defined_mbstate_t /* Override the system's wcsrtombs() function. */ # undef wcsrtombs |