summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <raphael.kubo.da.costa@intel.com>2017-09-19 14:30:10 +0200
committerChromium commit bot <commit-bot@chromium.org>2017-09-19 12:40:11 +0000
commitb02aa61946a62639dd9d39bc00eff6f829b1e414 (patch)
tree396c323fd092fd19d1b9d1efba494ed346972858
parent2c559dc576392e69208895f2632f49ee43903d48 (diff)
downloadpdfium-b02aa61946a62639dd9d39bc00eff6f829b1e414.tar.xz
IWYU: Explicitly include <stdint.h> in some headers.
While Chromium's clang and libc++ implicitly end up including that header, the build can break with other toolchains (e.g. GCC 7 and its libstdc++) because some headers reference types such as int32_t without including the header that defines them. Change-Id: Ibb2aa3d3b432f4b47f1b8635d0196d4f69cb09a0 Reviewed-on: https://pdfium-review.googlesource.com/14270 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
-rw-r--r--fxbarcode/common/BC_CommonBitArray.h2
-rw-r--r--fxbarcode/common/BC_CommonByteArray.h2
-rw-r--r--fxbarcode/pdf417/BC_PDF417BarcodeRow.h2
-rw-r--r--fxbarcode/qrcode/BC_QRCoderECBlocks.h2
-rw-r--r--xfa/fxfa/cxfa_texttabstopscontext.h2
5 files changed, 10 insertions, 0 deletions
diff --git a/fxbarcode/common/BC_CommonBitArray.h b/fxbarcode/common/BC_CommonBitArray.h
index 1f98e54e53..163db86273 100644
--- a/fxbarcode/common/BC_CommonBitArray.h
+++ b/fxbarcode/common/BC_CommonBitArray.h
@@ -7,6 +7,8 @@
#ifndef FXBARCODE_COMMON_BC_COMMONBITARRAY_H_
#define FXBARCODE_COMMON_BC_COMMONBITARRAY_H_
+#include <stdint.h>
+
#include <vector>
class CBC_CommonBitArray {
diff --git a/fxbarcode/common/BC_CommonByteArray.h b/fxbarcode/common/BC_CommonByteArray.h
index 86b4ea1544..285a567c8e 100644
--- a/fxbarcode/common/BC_CommonByteArray.h
+++ b/fxbarcode/common/BC_CommonByteArray.h
@@ -7,6 +7,8 @@
#ifndef FXBARCODE_COMMON_BC_COMMONBYTEARRAY_H_
#define FXBARCODE_COMMON_BC_COMMONBYTEARRAY_H_
+#include <stdint.h>
+
#include <vector>
// TODO(weili): The usage of this class should be replaced by
diff --git a/fxbarcode/pdf417/BC_PDF417BarcodeRow.h b/fxbarcode/pdf417/BC_PDF417BarcodeRow.h
index 45b79c7368..d49d0eb9c2 100644
--- a/fxbarcode/pdf417/BC_PDF417BarcodeRow.h
+++ b/fxbarcode/pdf417/BC_PDF417BarcodeRow.h
@@ -7,6 +7,8 @@
#ifndef FXBARCODE_PDF417_BC_PDF417BARCODEROW_H_
#define FXBARCODE_PDF417_BC_PDF417BARCODEROW_H_
+#include <stdint.h>
+
#include <vector>
class CBC_BarcodeRow {
diff --git a/fxbarcode/qrcode/BC_QRCoderECBlocks.h b/fxbarcode/qrcode/BC_QRCoderECBlocks.h
index 999faca791..6c4f1cd9a7 100644
--- a/fxbarcode/qrcode/BC_QRCoderECBlocks.h
+++ b/fxbarcode/qrcode/BC_QRCoderECBlocks.h
@@ -7,6 +7,8 @@
#ifndef FXBARCODE_QRCODE_BC_QRCODERECBLOCKS_H_
#define FXBARCODE_QRCODE_BC_QRCODERECBLOCKS_H_
+#include <stdint.h>
+
#include <vector>
struct CBC_QRCoderECBlockData;
diff --git a/xfa/fxfa/cxfa_texttabstopscontext.h b/xfa/fxfa/cxfa_texttabstopscontext.h
index 57d0489034..9837e357da 100644
--- a/xfa/fxfa/cxfa_texttabstopscontext.h
+++ b/xfa/fxfa/cxfa_texttabstopscontext.h
@@ -7,6 +7,8 @@
#ifndef XFA_FXFA_CXFA_TEXTTABSTOPSCONTEXT_H_
#define XFA_FXFA_CXFA_TEXTTABSTOPSCONTEXT_H_
+#include <stdint.h>
+
#include <vector>
struct XFA_TABSTOPS {