diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2013-08-29 15:27:45 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2013-09-03 11:25:47 +0200 |
commit | 5d37b6096afe4cb76571b32a95f4aca5f98572ec (patch) | |
tree | d83683a23c4bb2e218cd03ef10a7dd1786727a20 /include/mupdf/fitz/context.h | |
parent | f66ab69b6a8c7112779e61c6ed7d253d8798f9f1 (diff) | |
download | mupdf-5d37b6096afe4cb76571b32a95f4aca5f98572ec.tar.xz |
Add FZ_VERSION define. Check header and library version compatibility.
Diffstat (limited to 'include/mupdf/fitz/context.h')
-rw-r--r-- | include/mupdf/fitz/context.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/mupdf/fitz/context.h b/include/mupdf/fitz/context.h index 737f163e..cef1119f 100644 --- a/include/mupdf/fitz/context.h +++ b/include/mupdf/fitz/context.h @@ -1,6 +1,7 @@ #ifndef MUPDF_FITZ_CONTEXT_H #define MUPDF_FITZ_CONTEXT_H +#include "mupdf/fitz/version.h" #include "mupdf/fitz/system.h" /* @@ -150,7 +151,9 @@ enum { Does not throw exceptions, but may return NULL. */ -fz_context *fz_new_context(fz_alloc_context *alloc, fz_locks_context *locks, unsigned int max_store); +fz_context *fz_new_context_imp(fz_alloc_context *alloc, fz_locks_context *locks, unsigned int max_store, const char *version); + +#define fz_new_context(alloc, locks, max_store) fz_new_context_imp(alloc, locks, max_store, FZ_VERSION) /* fz_clone_context: Make a clone of an existing context. |