Let's not use the non-standard timegm() even if __GNUC__ is defined

This commit is contained in:
rdb 2010-06-22 07:25:33 +00:00
parent 60d81ae7da
commit 47649afc5b
1 changed files with 4 additions and 1 deletions

View File

@ -210,7 +210,10 @@ HTTPDate(const string &format) {
}
// Everything checks out; convert the date.
#ifdef __GNUC__
// rdb made this an #if 0 check as timegm is a nonstandard extension
// so it fails in some situations even if the compiler defines __GNUC__
#if 0
_time = timegm(&t);
#else // __GNUC__