Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115579
D5448.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
536 B
Subscribers
None
D5448.diff
View Options
diff --git a/src/util/time.cpp b/src/util/time.cpp
--- a/src/util/time.cpp
+++ b/src/util/time.cpp
@@ -78,7 +78,7 @@
std::string FormatISO8601DateTime(int64_t nTime) {
struct tm ts;
time_t time_val = nTime;
-#ifdef _MSC_VER
+#ifdef _WIN32
gmtime_s(&ts, &time_val);
#else
gmtime_r(&time_val, &ts);
@@ -91,7 +91,7 @@
std::string FormatISO8601Date(int64_t nTime) {
struct tm ts;
time_t time_val = nTime;
-#ifdef _MSC_VER
+#ifdef _WIN32
gmtime_s(&ts, &time_val);
#else
gmtime_r(&time_val, &ts);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 1, 11:28 (4 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187605
Default Alt Text
D5448.diff (536 B)
Attached To
D5448: Misuse of the Visual Studio version preprocessor macro
Event Timeline
Log In to Comment