mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 00:38:31 +00:00
Support symbol tables with arch specific name
This commit is contained in:
parent
bd49ea1c3a
commit
801224df67
5 changed files with 30 additions and 19 deletions
|
@ -47,7 +47,7 @@ static bool ShouldCompress(const char *name, size_t namesize,
|
|||
static void GetDosLocalTime(int64_t utcunixts, uint16_t *out_time,
|
||||
uint16_t *out_date) {
|
||||
struct tm tm;
|
||||
CHECK_NOTNULL(localtime_r(&utcunixts, &tm));
|
||||
CHECK_NOTNULL(gmtime_r(&utcunixts, &tm));
|
||||
*out_time = DOS_TIME(tm.tm_hour, tm.tm_min, tm.tm_sec);
|
||||
*out_date = DOS_DATE(tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday + 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue