diff --git a/gl/btowc.c b/gl/btowc.c
index 7f3b9663c4f261ece2ce3ff4db8bd3a6d7a99876..8744602aaf25ed826985490ed18bd2ba25d006cb 100644 (file)
--- a/gl/btowc.c
+++ b/gl/btowc.c
/* Convert unibyte character to wide character.
- Copyright (C) 2008 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
#include <wchar.h>
#include <stdio.h>
+#include <stdlib.h>
wint_t
btowc (int c)
buf[0] = c;
if (mbtowc (&wc, buf, 1) >= 0)
- return wc;
+ return wc;
}
return WEOF;
}