From 455019ca48f60bd285e043986471f51f17c69a0d Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Wed, 16 Sep 2015 11:00:38 -0700 Subject: Fix build broken at 506df426d5d6. Move header file includes when usage moved. Windows-only section missing a ")". TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1349783003 . --- fpdfsdk/src/javascript/JS_Value.cpp | 4 ++++ fpdfsdk/src/javascript/global.cpp | 2 +- fpdfsdk/src/jsapi/fxjs_v8.cpp | 4 ---- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fpdfsdk/src/javascript/JS_Value.cpp b/fpdfsdk/src/javascript/JS_Value.cpp index 3b8f597e96..23def5dc9c 100644 --- a/fpdfsdk/src/javascript/JS_Value.cpp +++ b/fpdfsdk/src/javascript/JS_Value.cpp @@ -4,6 +4,10 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com +#include +#include +#include + #include "../../include/javascript/JavaScript.h" #include "../../include/javascript/JS_Define.h" #include "../../include/javascript/JS_Object.h" diff --git a/fpdfsdk/src/javascript/global.cpp b/fpdfsdk/src/javascript/global.cpp index af517c0065..51455d0cfa 100644 --- a/fpdfsdk/src/javascript/global.cpp +++ b/fpdfsdk/src/javascript/global.cpp @@ -71,7 +71,7 @@ HashVerify::HashVerify() { ASSERT(JSCONST_nObjectHash == JS_CalcHash(kFXJSValueNameObject)); ASSERT(JSCONST_nFXobjHash == JS_CalcHash(kFXJSValueNameFxobj)); ASSERT(JSCONST_nNullHash == JS_CalcHash(kFXJSValueNameNull)); - ASSERT(JSCONST_nUndefHash == JS_CalcHash(kFXJSValueNameUndefined); + ASSERT(JSCONST_nUndefHash == JS_CalcHash(kFXJSValueNameUndefined)); } #endif diff --git a/fpdfsdk/src/jsapi/fxjs_v8.cpp b/fpdfsdk/src/jsapi/fxjs_v8.cpp index 2fe6e44264..2c17628dbc 100644 --- a/fpdfsdk/src/jsapi/fxjs_v8.cpp +++ b/fpdfsdk/src/jsapi/fxjs_v8.cpp @@ -4,10 +4,6 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com -#include -#include -#include - #include "../../../core/include/fxcrt/fx_basic.h" #include "../../include/fsdk_define.h" #include "../../include/jsapi/fxjs_v8.h" -- cgit v1.2.3