We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2164c2e commit f4721a7Copy full SHA for f4721a7
include/pybind11/chrono.h
@@ -101,7 +101,7 @@ template <typename type> class duration_caster {
101
};
102
103
inline std::tm *localtime_thread_safe(const std::time_t *time, std::tm *buf) {
104
-#if defined(__STDC_WANT_LIB_EXT1__) || defined(_MSC_VER)
+#if (defined(__STDC_LIB_EXT1__) && defined(__STDC_WANT_LIB_EXT1__)) || defined(_MSC_VER)
105
if (localtime_s(buf, time))
106
return nullptr;
107
return buf;
0 commit comments