changeset 32844:0d072099ef9d

btowc: Avoid warning.
author Bruno Haible <bruno@clisp.org>
date Mon, 05 Apr 2010 01:37:37 +0200
parents 21b55457b77d
children 93883b4bcda4
files ChangeLog lib/btowc.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Apr 05 01:33:24 2010 +0200
+++ b/ChangeLog	Mon Apr 05 01:37:37 2010 +0200
@@ -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	Mon Apr 05 01:33:24 2010 +0200
+++ b/lib/btowc.c	Mon Apr 05 01:37:37 2010 +0200
@@ -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)