Fix a #include in fpdf_page_func.cpp.
authorDavid Lattimore <dml@google.com>
Thu, 17 Sep 2015 21:39:39 +0000 (07:39 +1000)
committerDavid Lattimore <dml@google.com>
Thu, 17 Sep 2015 21:39:39 +0000 (07:39 +1000)
Not sure why building with gyp was working despite the missing '../' but
it wasn't working in stricter build systems.

BUG=
R=thestig@chromium.org

Review URL: https://codereview.chromium.org/1321293003.

core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp
third_party/base/numerics/safe_conversions_impl.h

index 8c909a9..224c99b 100644 (file)
@@ -6,10 +6,10 @@
 
 #include <limits.h>
 
+#include "../../../../third_party/base/numerics/safe_conversions_impl.h"
 #include "../../../include/fpdfapi/fpdf_module.h"
 #include "../../../include/fpdfapi/fpdf_page.h"
 #include "../../../include/fxcrt/fx_safe_types.h"
-#include "../../../third_party/base/numerics/safe_conversions_impl.h"
 #include "pageint.h"
 
 class CPDF_PSEngine;
index 7c88dda..f7afdfe 100644 (file)
@@ -5,6 +5,7 @@
 #ifndef PDFIUM_THIRD_PARTY_BASE_SAFE_CONVERSIONS_IMPL_H_
 #define PDFIUM_THIRD_PARTY_BASE_SAFE_CONVERSIONS_IMPL_H_
 
+#include <assert.h>
 #include <limits>
 
 #include "../macros.h"
@@ -216,4 +217,3 @@ inline RangeConstraint DstRangeRelationToSrcRange(Src value) {
 }  // namespace pdfium
 
 #endif  // PDFIUM_THIRD_PARTY_BASE_SAFE_CONVERSIONS_IMPL_H_
-