mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-17 10:59:39 +00:00
timegm api absent in AIX (#2336)
This commit is contained in:
1 parent
191bfb2ea4
commit
f73e694f0c
1 file changed
+2
@@ -3547,6 +3547,8 @@ inline time_t parse_http_date(const std::string &date_str) {
|
|||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
return _mkgmtime(&tm_buf);
|
return _mkgmtime(&tm_buf);
|
||||||
|
#elif defined _AIX
|
||||||
|
return mktime(&tm_buf);
|
||||||
#else
|
#else
|
||||||
return timegm(&tm_buf);
|
return timegm(&tm_buf);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in new issue
Block a user