mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 05:58:01 -05:00
parsedate: still provide the name arrays when disabled
If FILE or FTP are enabled, since they also use them! Reported-by: Roland Hieber Fixes #4325 Closes #4343
This commit is contained in:
parent
b543f1fadb
commit
83b4cfacba
@ -100,16 +100,20 @@ static int parsedate(const char *date, time_t *output);
|
|||||||
#define PARSEDATE_LATER 1
|
#define PARSEDATE_LATER 1
|
||||||
#define PARSEDATE_SOONER 2
|
#define PARSEDATE_SOONER 2
|
||||||
|
|
||||||
#ifndef CURL_DISABLE_PARSEDATE
|
#if !defined(CURL_DISABLE_PARSEDATE) || !defined(CURL_DISABLE_FTP) || \
|
||||||
|
!defined(CURL_DISABLE_FILE)
|
||||||
|
/* These names are also used by FTP and FILE code */
|
||||||
const char * const Curl_wkday[] =
|
const char * const Curl_wkday[] =
|
||||||
{"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"};
|
{"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"};
|
||||||
static const char * const weekday[] =
|
|
||||||
{ "Monday", "Tuesday", "Wednesday", "Thursday",
|
|
||||||
"Friday", "Saturday", "Sunday" };
|
|
||||||
const char * const Curl_month[]=
|
const char * const Curl_month[]=
|
||||||
{ "Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
{ "Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
||||||
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
|
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef CURL_DISABLE_PARSEDATE
|
||||||
|
static const char * const weekday[] =
|
||||||
|
{ "Monday", "Tuesday", "Wednesday", "Thursday",
|
||||||
|
"Friday", "Saturday", "Sunday" };
|
||||||
|
|
||||||
struct tzinfo {
|
struct tzinfo {
|
||||||
char name[5];
|
char name[5];
|
||||||
|
Loading…
Reference in New Issue
Block a user