From b02aa61946a62639dd9d39bc00eff6f829b1e414 Mon Sep 17 00:00:00 2001 From: Raphael Kubo da Costa Date: Tue, 19 Sep 2017 14:30:10 +0200 Subject: IWYU: Explicitly include 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 Commit-Queue: dsinclair --- fxbarcode/common/BC_CommonBitArray.h | 2 ++ fxbarcode/common/BC_CommonByteArray.h | 2 ++ fxbarcode/pdf417/BC_PDF417BarcodeRow.h | 2 ++ fxbarcode/qrcode/BC_QRCoderECBlocks.h | 2 ++ xfa/fxfa/cxfa_texttabstopscontext.h | 2 ++ 5 files changed, 10 insertions(+) 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 + #include 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 + #include // 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 + #include 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 + #include 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 + #include struct XFA_TABSTOPS { -- cgit v1.2.3