mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-30 12:31:53 +08:00
Fix -Wundef warnings in fnmatch.c
Fixes -Wundef warnings for MBSTATE_T and HAVE_STRING_H. The HAVE_STRING_H bit is a merge from the gnulib fnmatch.c and the MBSTATE_T fix has been posted to gnulib for inclusion.
This commit is contained in:
parent
95ee7fb13b
commit
3f3dd810e0
@ -1,3 +1,9 @@
|
||||
2014-08-01 Siddhesh Poyarekar <siddhesh@redhat.com>
|
||||
|
||||
* include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
|
||||
(HAVE_MBSRTOWCS): Likewise.
|
||||
* posix/fnmatch.c: Include string.h unconditionally.
|
||||
|
||||
2014-08-01 Stefan Liebler <stli@linux.vnet.ibm.com>
|
||||
|
||||
* NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
|
||||
|
@ -57,9 +57,11 @@
|
||||
so it's harmless. */
|
||||
#define HAVE_CONFIG_H 0
|
||||
|
||||
/* Define this for the benefit of portable GNU code that wants to check it.
|
||||
Of course, it's never false when building libc! */
|
||||
/* Define these macros for the benefit of portable GNU code that wants to check
|
||||
them. Of course, STDC_HEADERS is never false when building libc! */
|
||||
#define STDC_HEADERS 1
|
||||
#define HAVE_MBSTATE_T 1
|
||||
#define HAVE_MBSRTOWCS 1
|
||||
|
||||
/* The symbols in all the user (non-_) macros are C symbols. */
|
||||
|
||||
|
@ -28,12 +28,7 @@
|
||||
#include <errno.h>
|
||||
#include <fnmatch.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#if HAVE_STRING_H || defined _LIBC
|
||||
# include <string.h>
|
||||
#else
|
||||
# include <strings.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
|
||||
#if defined STDC_HEADERS || defined _LIBC
|
||||
# include <stdlib.h>
|
||||
|
Loading…
Reference in New Issue
Block a user