Merge branch 'master' into smart_holder

[actions skip]
This commit is contained in:
Ralf W. Grosse-Kunstleve 2021-07-28 10:23:30 -07:00
commit dcdadd73f5

View File

@ -101,7 +101,7 @@ public:
}; };
inline std::tm *localtime_thread_safe(const std::time_t *time, std::tm *buf) { inline std::tm *localtime_thread_safe(const std::time_t *time, std::tm *buf) {
#if defined(__STDC_WANT_LIB_EXT1__) || defined(_MSC_VER) #if (defined(__STDC_LIB_EXT1__) && defined(__STDC_WANT_LIB_EXT1__)) || defined(_MSC_VER)
if (localtime_s(buf, time)) if (localtime_s(buf, time))
return nullptr; return nullptr;
return buf; return buf;