Mercurial > hg > octave-lojdl > gnulib-hg
changeset 13153:5566a3e85a6d
btowc: Avoid warning.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 05 Apr 2010 01:37:37 +0200 |
parents | 587fde43ef73 |
children | 6a5baf77920b |
files | ChangeLog lib/btowc.c |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-04-04 Bruno Haible <bruno@clisp.org> + + btowc: Avoid warning. + * lib/btowc.c: Include <stdlib.h>. + Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>. + 2010-04-04 Hauke Fath <hauke@espresso.rhein-neckar.de> (tiny change) Bruno Haible <bruno@clisp.org>
--- a/lib/btowc.c +++ b/lib/btowc.c @@ -1,5 +1,5 @@ /* Convert unibyte character to wide character. - 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 @@ -21,6 +21,7 @@ #include <wchar.h> #include <stdio.h> +#include <stdlib.h> wint_t btowc (int c)