From 062fac27c581ee207defcca238df691f896859f2 Mon Sep 17 00:00:00 2001 From: Yann Sionneau Date: Mon, 29 Nov 2021 16:33:34 +0100 Subject: Fix -Wundef related warnings Signed-off-by: Yann Sionneau --- libc/misc/fnmatch/fnmatch_loop.c | 2 +- libc/misc/regex/regex_internal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libc') diff --git a/libc/misc/fnmatch/fnmatch_loop.c b/libc/misc/fnmatch/fnmatch_loop.c index fdd451d43..32ee079a3 100644 --- a/libc/misc/fnmatch/fnmatch_loop.c +++ b/libc/misc/fnmatch/fnmatch_loop.c @@ -620,7 +620,7 @@ FCT (const CHAR *pattern, const CHAR *string, const CHAR *string_end, if (c == L('-') && *p != L(']')) { -#if _LIBC +#ifdef _LIBC /* We have to find the collation sequence value for C. Collation sequence is nothing we can regularly access. The sequence diff --git a/libc/misc/regex/regex_internal.h b/libc/misc/regex/regex_internal.h index 5d9154fa0..c0f61d4ce 100644 --- a/libc/misc/regex/regex_internal.h +++ b/libc/misc/regex/regex_internal.h @@ -58,7 +58,7 @@ #define gettext(msgid) (msgid) #define gettext_noop(String) String -#if (defined MB_CUR_MAX && HAVE_LOCALE_H && HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_WCRTOMB && HAVE_MBRTOWC && HAVE_WCSCOLL) +#if (defined MB_CUR_MAX && defined HAVE_LOCALE_H && defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H && defined HAVE_WCRTOMB && defined HAVE_MBRTOWC && defined HAVE_WCSCOLL) # define RE_ENABLE_I18N #endif -- cgit v1.2.3