Skip to content

Commit

Permalink
XXX Configure strftime() is C89
Browse files Browse the repository at this point in the history
We can assume it exists
  • Loading branch information
khwilliamson committed Apr 29, 2021
1 parent d3da705 commit 2efa889
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 1 addition & 3 deletions locale.c
Expand Up @@ -4061,7 +4061,6 @@ S_my_langinfo_i(pTHX_
}

# endif
# ifdef HAS_STRFTIME

/* These formats are only available in later strfmtime's */
case ERA_D_FMT: case ERA_T_FMT: case ERA_D_T_FMT: case T_FMT_AMPM:
Expand Down Expand Up @@ -4220,7 +4219,6 @@ S_my_langinfo_i(pTHX_
return format;
}

# endif

case CODESET:
if (isNAME_C_OR_POSIX(locale)) {
Expand Down Expand Up @@ -4300,7 +4298,7 @@ S_my_langinfo_i(pTHX_
&scratch_buf, &scratch_buf_size, &locale_is_utf8);

# endif
# if defined(USE_LOCALE_TIME) && defined(HAS_STRFTIME)
# ifdef USE_LOCALE_TIME

/* If that didn't rule out being UTF-8, we look at LC_TIME entries,
* like the names of the months or weekdays. We quit at the first
Expand Down
5 changes: 0 additions & 5 deletions util.c
Expand Up @@ -4161,7 +4161,6 @@ Perl_mini_mktime(struct tm *ptm)
char *
Perl_my_strftime(pTHX_ const char *fmt, int sec, int min, int hour, int mday, int mon, int year, int wday, int yday, int isdst)
{
#ifdef HAS_STRFTIME

/*
=for apidoc_section $time
Expand Down Expand Up @@ -4279,10 +4278,6 @@ giving localized results.
}
return buf;
}
#else
Perl_croak(aTHX_ "panic: no strftime");
return NULL;
#endif
}


Expand Down

0 comments on commit 2efa889

Please sign in to comment.