diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-05-12 16:17:04 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-05-12 16:17:04 -0700 |
commit | b2aa54381811383d4a86fbe7b194907c33e8dcc1 (patch) | |
tree | c6e7003e8c63a060345147a2243d114d19fa54d7 /public/fpdf_save.h | |
parent | e6bd866c5c64950a8b2836e7254e1f44b2fe0925 (diff) | |
download | pdfium-b2aa54381811383d4a86fbe7b194907c33e8dcc1.tar.xz |
Make (and verify) public/ files compile under C.
This involves adding some missing extern "C" { } declarations,
using FPDF_ types instead of C++ types, and converting pass
by reference arguments into pointers.
Test this using fpdfview_embedertest for simplicity.
BUG=pdfium:158
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1130843003
Diffstat (limited to 'public/fpdf_save.h')
-rw-r--r-- | public/fpdf_save.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/public/fpdf_save.h b/public/fpdf_save.h index 0909d5a447..28b169b0df 100644 --- a/public/fpdf_save.h +++ b/public/fpdf_save.h @@ -15,7 +15,7 @@ extern "C" { // Structure for custom file write -struct FPDF_FILEWRITE{ +typedef struct FPDF_FILEWRITE_ { // //Version number of the interface. Currently must be 1. @@ -38,9 +38,9 @@ struct FPDF_FILEWRITE{ // Return value: // Should be non-zero if successful, zero for error. // - int (*WriteBlock)( FPDF_FILEWRITE* pThis, const void* pData, unsigned long size); + int (*WriteBlock)(struct FPDF_FILEWRITE_* pThis, const void* pData, unsigned long size); -}; +} FPDF_FILEWRITE; /** @brief Incremental. */ |