changeset 8967:5963f8c7f555

Include <stdlib.h>.
author Bruno Haible <bruno@clisp.org>
date Mon, 11 Jun 2007 00:20:36 +0000
parents cbc204793cf7
children 236e8277b9b1
files ChangeLog lib/mbslen.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-06-10  Bruno Haible  <bruno@clisp.org>
+
+	* lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
+
 2007-06-10  Bruno Haible  <bruno@clisp.org>
 
 	* lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
--- a/lib/mbslen.c
+++ b/lib/mbslen.c
@@ -21,6 +21,8 @@
 /* Specification.  */
 #include <string.h>
 
+#include <stdlib.h>
+
 #if HAVE_MBRTOWC
 # include "mbuiter.h"
 #endif