diff options
Diffstat (limited to 'fitz')
-rw-r--r-- | fitz/fitz-internal.h | 8 | ||||
-rw-r--r-- | fitz/fitz.h | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/fitz/fitz-internal.h b/fitz/fitz-internal.h index 22947cf4..04ff5fd6 100644 --- a/fitz/fitz-internal.h +++ b/fitz/fitz-internal.h @@ -19,6 +19,10 @@ typedef unsigned __int64 uint64_t; #include <inttypes.h> #endif +#ifdef __cplusplus +extern "C" { +#endif + struct fz_warn_context_s { char message[256]; @@ -1625,4 +1629,8 @@ struct fz_document_s fz_rect *(*bound_annot)(fz_document *doc, fz_annot *annot, fz_rect *rect); }; +#ifdef __cplusplus +} +#endif + #endif diff --git a/fitz/fitz.h b/fitz/fitz.h index 5eb570d0..c6e8fa04 100644 --- a/fitz/fitz.h +++ b/fitz/fitz.h @@ -133,6 +133,10 @@ FILE *fopen_utf8(const char *name, const char *mode); #endif #endif +#ifdef __cplusplus +extern "C" { +#endif + /* Shut the compiler up about unused variables */ @@ -3341,4 +3345,8 @@ enum */ void fz_write_document(fz_document *doc, char *filename, fz_write_options *opts); +#ifdef __cplusplus +} +#endif + #endif |