Skip to content
Myr

Provide strptime implementation on all systems

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by George Hopkins · committed by Nico Williams · parent f51e841 · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:src/builtin.c+1 added-1 removed
1462 unmodified lines
1463 * unsupported on OS X.1464 */1465 set_tm_wday(&tm);1466 set_tm_yday(&tm);1467#elif defined(WIN32)1467#elif defined(WIN32) || !defined(HAVE_STRPTIME)1468 set_tm_wday(&tm);1469#else1470 if (tm.tm_wday == 8 && tm.tm_mday != 0 && tm.tm_mon >= 0 && tm.tm_mon <= 11)1471 set_tm_wday(&tm);
425 unmodified lines
modified:src/util.c+1 added-1 removed
449 unmodified lines
450 }451 return value;452}453454#if defined(WIN32) && !defined(HAVE_STRPTIME)454#ifndef HAVE_STRPTIME455/* http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/lib/libc/time/strptime.c?only_with_tag=HEAD456 * NetBSD implementation strptime().457 * Format description: https://netbsd.gw.com/cgi-bin/man-cgi?strptime+3+NetBSD-current458 * Adapted by https://github.com/res2001 (https://github.com/res2001/strptime).
800 unmodified lines