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 35cab5e40b4966c0ba95b043c2ad62273344bc92..662e0581aa758e010de647383eda717d5d44126d 100644 (file)
--- 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.
index 41c219f54cc1678891ee76fdacb3b3e1ae55c830..9dae4172ab6d179ab0c7b50525997301f5e2bace 100644 (file)
@@ -21,6 +21,8 @@
 /* Specification.  */
 #include <string.h>
 
+#include <stdlib.h>
+
 #if HAVE_MBRTOWC
 # include "mbuiter.h"
 #endif