diff options
Diffstat (limited to 'crypto/o_time.c')
-rwxr-xr-x | crypto/o_time.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/o_time.c b/crypto/o_time.c index 6192743..a763b2c 100755 --- a/crypto/o_time.c +++ b/crypto/o_time.c @@ -109,6 +109,10 @@ struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result) if (gmtime_r(timer, result) == NULL) return NULL; ts = result; +#elif defined (OPENSSL_SYS_WINDOWS) && defined(_MSC_VER) && _MSC_VER >= 1400 + if (gmtime_s(result, timer)) + return NULL; + ts = result; #elif !defined(OPENSSL_SYS_VMS) || defined(VMS_GMTIME_OK) ts = gmtime(timer); if (ts == NULL) |