X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fbtowc.c;h=b06ca2e4a507499d0d4bd7256488d335f3160a09;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=7f3b9663c4f261ece2ce3ff4db8bd3a6d7a99876;hpb=82b3be219d2636717f419e68ceaca40f3b5b8514;p=gnulib.git diff --git a/lib/btowc.c b/lib/btowc.c index 7f3b9663c..b06ca2e4a 100644 --- a/lib/btowc.c +++ b/lib/btowc.c @@ -1,5 +1,5 @@ /* Convert unibyte character to wide character. - Copyright (C) 2008 Free Software Foundation, Inc. + Copyright (C) 2008, 2010-2014 Free Software Foundation, Inc. Written by Bruno Haible , 2008. This program is free software: you can redistribute it and/or modify @@ -21,6 +21,7 @@ #include #include +#include wint_t btowc (int c) @@ -32,7 +33,7 @@ btowc (int c) buf[0] = c; if (mbtowc (&wc, buf, 1) >= 0) - return wc; + return wc; } return WEOF; }