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 5934aea commit fe8a5c5Copy full SHA for fe8a5c5
include/rfl/Timestamp.hpp
@@ -3,9 +3,6 @@
3
4
#include <ctime>
5
#include <iomanip>
6
-#include <iostream>
7
-#include <iterator>
8
-#include <locale>
9
#include <sstream>
10
#include <stdexcept>
11
#include <string>
@@ -75,8 +72,8 @@ class Timestamp {
75
72
const std::tm& tm() const { return tm_; }
76
73
77
74
private:
78
-#ifdef _MSC_VER
79
- // 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.
80
char* strptime(const char* _s, const char* _f, std::tm* _tm) {
81
std::istringstream input(_s);
82
input.imbue(std::locale(setlocale(LC_ALL, nullptr)));
0 commit comments