diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz.h | 1 | ||||
-rw-r--r-- | include/mupdf/fitz/context.h | 5 | ||||
-rw-r--r-- | include/mupdf/fitz/version.h | 6 |
3 files changed, 11 insertions, 1 deletions
diff --git a/include/mupdf/fitz.h b/include/mupdf/fitz.h index 02c5778a..6cc13efe 100644 --- a/include/mupdf/fitz.h +++ b/include/mupdf/fitz.h @@ -1,6 +1,7 @@ #ifndef MUDPF_FITZ_H #define MUDPF_FITZ_H +#include "mupdf/fitz/version.h" #include "mupdf/fitz/system.h" #include "mupdf/fitz/context.h" 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. diff --git a/include/mupdf/fitz/version.h b/include/mupdf/fitz/version.h new file mode 100644 index 00000000..6f7c1ff0 --- /dev/null +++ b/include/mupdf/fitz/version.h @@ -0,0 +1,6 @@ +#ifndef MUPDF_FITZ_VERSION_H +#define MUPDF_FITZ_VERSION_H +#ifndef FZ_VERSION +#define FZ_VERSION "1.3" +#endif +#endif |