summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-08-04 14:45:14 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-08-04 23:14:47 +0000
commitbd456561faf7de2d2756a350a9be0d10ce47c51c (patch)
treeb0cc1edc48827f06dfae5548d3208c2d72160427
parentdf950b87e781daf92364afb22f13d87b18858c80 (diff)
downloadpdfium-bd456561faf7de2d2756a350a9be0d10ce47c51c.tar.xz
Remove _MSC_VER from JS_Value.cppchromium/3179chromium/3178
Use one of the _FXM_PLATFORM_ macros we defined in fx_system.h in its place. Change-Id: Iabf56c2aa840927aa48532320b9cbf095b9b7b6e Reviewed-on: https://pdfium-review.googlesource.com/10210 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
-rw-r--r--fpdfsdk/javascript/JS_Value.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/javascript/JS_Value.cpp b/fpdfsdk/javascript/JS_Value.cpp
index 40b94fac64..e52d7d1a0f 100644
--- a/fpdfsdk/javascript/JS_Value.cpp
+++ b/fpdfsdk/javascript/JS_Value.cpp
@@ -31,12 +31,12 @@ double GetLocalTZA() {
time_t t = 0;
time(&t);
localtime(&t);
-#if defined(_MSC_VER)
+#if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
// In gcc 'timezone' is a global variable declared in time.h. In VC++, that
// variable was removed in VC++ 2015, with _get_timezone replacing it.
long timezone = 0;
_get_timezone(&timezone);
-#endif
+#endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
return (double)(-(timezone * 1000));
}