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 5ff6813 commit ad12d2dCopy full SHA for ad12d2d
include/rfl/Timestamp.hpp
@@ -72,8 +72,8 @@ class Timestamp {
72
const std::tm& tm() const { return tm_; }
73
74
private:
75
-#ifdef _MSC_VER
76
- // This workaround is necessary, because MSVC doesn't support strptime.
+#if defined(_MSC_VER) || defined(__MINGW32__)
+ // This workaround is necessary, because strptime is not available on Windows.
77
char* strptime(const char* _s, const char* _f, std::tm* _tm) {
78
std::istringstream input(_s);
79
input.imbue(std::locale(setlocale(LC_ALL, nullptr)));
0 commit comments