Fix build broken at 506df426d5d6.
authorTom Sepez <tsepez@chromium.org>
Wed, 16 Sep 2015 18:00:38 +0000 (11:00 -0700)
committerTom Sepez <tsepez@chromium.org>
Wed, 16 Sep 2015 18:00:38 +0000 (11:00 -0700)
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
fpdfsdk/src/javascript/global.cpp
fpdfsdk/src/jsapi/fxjs_v8.cpp

index 3b8f597..23def5d 100644 (file)
@@ -4,6 +4,10 @@
 
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
+#include <time.h>
+#include <cmath>
+#include <limits>
+
 #include "../../include/javascript/JavaScript.h"
 #include "../../include/javascript/JS_Define.h"
 #include "../../include/javascript/JS_Object.h"
index af517c0..51455d0 100644 (file)
@@ -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
 
index 2fe6e44..2c17628 100644 (file)
@@ -4,10 +4,6 @@
 
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
-#include <time.h>
-#include <cmath>
-#include <limits>
-
 #include "../../../core/include/fxcrt/fx_basic.h"
 #include "../../include/fsdk_define.h"
 #include "../../include/jsapi/fxjs_v8.h"