fixed problem in time conversion for mingw

pull/202/head
Michael Zillgith 6 years ago
parent 16c7124c2b
commit 11d1a5ca6d

@ -65,7 +65,7 @@ days_from_civil(int y, int m, int d)
/* from https://stackoverflow.com/questions/16647819/timegm-cross-platform */
time_t
timegm(tm const* t) /* does not modify broken-down time */
timegm(struct tm const* t) /* does not modify broken-down time */
{
int year = t->tm_year + 1900;
int month = t->tm_mon; /* 0-11 */

Loading…
Cancel
Save