btowc: Avoid warning.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Apr 2010 23:37:37 +0000 (01:37 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Apr 2010 23:39:19 +0000 (01:39 +0200)
ChangeLog
lib/btowc.c

index d2d2721..0136995 100644 (file)
--- 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>
 
index a46f1b2..8744602 100644 (file)
@@ -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)