add struct tm definition and fix build error
This commit is contained in:
parent
1a3ee6090d
commit
6532346277
|
@ -41,6 +41,7 @@ char *strcasestr(const char *haystack, const char *needle);
|
|||
#if (defined(riscos) || defined(_WIN32))
|
||||
#undef HAVE_STRPTIME
|
||||
#define strptime nsc_time_strptime
|
||||
struct tm;
|
||||
char *nsc_time_strptime(const char *s, const char *format, struct tm *tm);
|
||||
#else
|
||||
#define HAVE_STRPTIME
|
||||
|
|
|
@ -576,7 +576,7 @@ char *nsc_time_strptime(const char *s, const char *format, struct tm *tm)
|
|||
char *endptr;
|
||||
|
||||
if ((format[0] != '%') || (format[1] != 's')) {
|
||||
return NULL
|
||||
return NULL;
|
||||
}
|
||||
|
||||
esecs = (time_t)strtoll(a, &endptr, 10);
|
||||
|
|
Loading…
Reference in New Issue