[libs] Fix some c23 build errors for mxe

This commit is contained in:
Bill Currie 2023-10-15 18:22:06 +09:00
parent c467d2f9b8
commit 3a38560ceb
3 changed files with 3 additions and 14 deletions

View file

@ -4619,8 +4619,7 @@ re_compile_pattern (
static struct re_pattern_buffer re_comp_buf;
const char *
re_comp (s)
const char *s;
re_comp (const char *s)
{
reg_errcode_t ret;
@ -4657,8 +4656,7 @@ re_comp (s)
int
re_exec (s)
const char *s;
re_exec (const char *s)
{
const int len = strlen (s);
return

View file

@ -548,12 +548,6 @@ PF_charcount (progs_t *pr, void *data)
R_FLOAT (pr) = count;
}
#if (INT_MAX == 2147483647) && (INT_MIN == -2147483648)
# define INT_WIDTH 11
#else /* I hope... */
# define INT_WIDTH 20
#endif
/*
string () gametype
*/

View file

@ -54,10 +54,7 @@
/* Match STRING against the filename pattern PATTERN, returning zero if
it matches, nonzero if not. */
int
fnmatch (pattern, string, flags)
const char *pattern;
const char *string;
int flags;
fnmatch (const char *pattern, const char *string, int flags)
{
register const char *p = pattern, *n = string;
register unsigned char c;