This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix printf-parsemb.c


Hi!

printf-parsemb.c: In function `__find_specmb':
printf-parsemb.c:65: error: `MB_CUR_MAX' undeclared (first use in this function)
printf-parsemb.c:65: error: (Each undeclared identifier is reported only once
printf-parsemb.c:65: error: for each function it appears in.)
printf-parsemb.c: In function `__parse_one_specmb':
printf-parsemb.c:120: warning: implicit declaration of function `MAX'
In file included from printf-parsewc.c:2:
printf-parsemb.c: In function `__parse_one_specwc':
printf-parsemb.c:120: warning: implicit declaration of function `MAX'

2003-06-12  Jakub Jelinek  <jakub@redhat.com>

	* stdio-common/printf-parsemb.c: Include stdlib.h and sys/param.h.

--- libc/stdio-common/printf-parsemb.c	12 Jun 2003 09:50:00 -0000	1.1.1.1
+++ libc/stdio-common/printf-parsemb.c	12 Jun 2003 13:08:48 -0000	1.2
@@ -1,4 +1,4 @@
-/* Internal header for parsing printf format strings.
+/* Helper functions for parsing printf format strings.
    Copyright (C) 1995-1999, 2000, 2002, 2003 Free Software Foundation, Inc.
    This file is part of th GNU C Library.
 
@@ -19,7 +19,9 @@
 
 #include <ctype.h>
 #include <limits.h>
+#include <stdlib.h>
 #include <string.h>
+#include <sys/param.h>
 #include <wchar.h>
 #include <wctype.h>
 

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]