Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(478)

Unified Diff: src/ports/SkTime_Unix.cpp

Issue 1526703003: Porting Skia for newlib compatibility. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/gpu/GrAutoLocaleSetter.h ('K') | « src/gpu/GrAutoLocaleSetter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkTime_Unix.cpp
diff --git a/src/ports/SkTime_Unix.cpp b/src/ports/SkTime_Unix.cpp
index 1ea3b8fbd0f5a1cb69a8c4906dd161ca507d1ef1..2128b4318a09b3b02ae65062581195ddebabd9a4 100644
--- a/src/ports/SkTime_Unix.cpp
+++ b/src/ports/SkTime_Unix.cpp
@@ -24,7 +24,11 @@ void SkTime::GetDateTime(DateTime* dt)
int offset = tstruct->tm_isdst == 1 ? 60 : 0;
// http://pubs.opengroup.org/onlinepubs/009695399/basedefs/time.h.html
+#if defined(_NEWLIB_VERSION)
+ dt->fTimeZoneMinutes = SkToS16(offset - _timezone / 60);
Mark Seaborn 2015/12/15 00:27:03 You don't need this change. I fixed nacl-newlib t
Sean Klein 2015/12/15 01:05:51 Done.
+#else
dt->fTimeZoneMinutes = SkToS16(offset - timezone / 60);
+#endif
dt->fYear = tstruct->tm_year + 1900;
dt->fMonth = SkToU8(tstruct->tm_mon + 1);
dt->fDayOfWeek = SkToU8(tstruct->tm_wday);
« src/gpu/GrAutoLocaleSetter.h ('K') | « src/gpu/GrAutoLocaleSetter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698