Include <stdlib.h>.
authorBruno Haible <bruno@clisp.org>
Mon, 11 Jun 2007 00:20:36 +0000 (00:20 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 11 Jun 2007 00:20:36 +0000 (00:20 +0000)
ChangeLog
lib/mbslen.c

index 35cab5e..662e058 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 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.
        * lib/mbuiter.h: Likewise.
 
index 41c219f..9dae417 100644 (file)
@@ -21,6 +21,8 @@
 /* Specification.  */
 #include <string.h>
 
+#include <stdlib.h>
+
 #if HAVE_MBRTOWC
 # include "mbuiter.h"
 #endif