summaryrefslogtreecommitdiff
path: root/samples/pdfium_test.cc
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-05-12 17:28:08 -0700
committerTom Sepez <tsepez@chromium.org>2015-05-12 17:28:08 -0700
commitcf22eb8ac24d944aac08d6a17c12b8a3a602c6f5 (patch)
tree60da3c149c8587662c020c629c1d50ed7e4a859d /samples/pdfium_test.cc
parent12df7f730cea21885c177254bb2b4e1b9e1bea59 (diff)
downloadpdfium-cf22eb8ac24d944aac08d6a17c12b8a3a602c6f5.tar.xz
Merge to XFA: Make (and verify) public/ files compile under C.
The following files needed adjustment beyond a mechanical merge: fpdfsdk/src/fpdfview.cpp public/fpdf_formfill.h samples/pdfium_test.cc testing/embedder_test.cpp Original Review URL: https://codereview.chromium.org/1130843003 BUG=pdfium:158 R=thestig@chromium.org Review URL: https://codereview.chromium.org/1137233002
Diffstat (limited to 'samples/pdfium_test.cc')
-rw-r--r--samples/pdfium_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
index 8ab94972a9..7c6b8b965d 100644
--- a/samples/pdfium_test.cc
+++ b/samples/pdfium_test.cc
@@ -414,7 +414,7 @@ int Get_Block(void* param, unsigned long pos, unsigned char* pBuf,
return 1;
}
-bool Is_Data_Avail(FX_FILEAVAIL* pThis, size_t offset, size_t size) {
+FPDF_BOOL Is_Data_Avail(FX_FILEAVAIL* pThis, size_t offset, size_t size) {
return true;
}
@@ -478,7 +478,7 @@ void RenderPdf(const std::string& name, const char* pBuf, size_t len,
FPDF_FORMHANDLE form = FPDFDOC_InitFormFillEnvironment(doc, &form_callbacks);
int docType = DOCTYPE_PDF;
- if (FPDF_HasXFAField(doc, docType))
+ if (FPDF_HasXFAField(doc, &docType))
{
if (docType != DOCTYPE_PDF && !FPDF_LoadXFA(doc))
fprintf(stderr, "LoadXFA unsuccessful, continuing anyway.\n");