+2008-01-17 Simon Hausmann <hausmann@webkit.org>
+
+ Reviewed by Holger.
+
+ Windows build fix. (use localtime_r again instead of _s)
+
+ * loader/FTPDirectoryDocument.cpp:
+ (WebCore::processFileDateString):
+
2008-01-17 Frans Englich <fenglich@trolltech.com>
Reviewed by Simon Hausmann <hausmann@webkit.org>.
return result;
}
-#define localtime_s(x, y) localTimeQt(x, y)
+#define localtime_r(x, y) localTimeQt(x, y)
#endif
static String processFileDateString(const FTPTime& fileTime)
// If it was today or yesterday, lets just do that - but we have to compare to the current time
struct tm now;
time_t now_t = time(NULL);
- localtime_s(&now_t, &now);
+ localtime_r(&now_t, &now);
// localtime does "year = current year - 1900", compensate for that for readability and comparison purposes
now.tm_year += 1900;