Changeset 55eda08


Ignore:
Timestamp:
2008-06-10T03:09:33Z (16 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
7f49a86
Parents:
7d3ef7b
Message:

Provide thread-unsafe replacement for gmtime_r on Windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • win32.c

    r7d3ef7b r55eda08  
    318318
    319319void log_link(int level, int output) { /* FIXME */ }
     320
     321struct tm *
     322gmtime_r (const time_t *timer, struct tm *result)
     323{
     324        struct tm *local_result;
     325        local_result = gmtime (timer);
     326
     327        if (local_result == NULL || result == NULL)
     328                return NULL;
     329
     330        memcpy (result, local_result, sizeof (result));
     331        return result;
     332}
Note: See TracChangeset for help on using the changeset viewer.