Skip to content

Commit

Permalink
Fix visibility of custom non-wrapped MuPDF symbols. (#1317)
Browse files Browse the repository at this point in the history
Missed those :/.
  • Loading branch information
NiLuJe committed Feb 26, 2021
1 parent 3259a24 commit f0436c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions wrap-mupdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,18 +134,18 @@ fz_alloc_context my_alloc_default =
my_free_default
};

extern fz_alloc_context* mupdf_get_my_alloc_context() {
fz_alloc_context* mupdf_get_my_alloc_context() {
return &my_alloc_default;
}

extern int mupdf_get_cache_size() {
int mupdf_get_cache_size() {
return msize;
}

extern int mupdf_error_code(fz_context *ctx) {
int mupdf_error_code(fz_context *ctx) {
return ctx->error->errcode;
}
extern char* mupdf_error_message(fz_context *ctx) {
char* mupdf_error_message(fz_context *ctx) {
return ctx->error->message;
}
/* wrappers for functions that throw exceptions mupdf-style (setjmp/longjmp) */
Expand Down
8 changes: 4 additions & 4 deletions wrap-mupdf.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
#define DLL_PUBLIC __attribute__((visibility("default")))
#define DLL_LOCAL __attribute__((visibility("hidden")))

extern fz_alloc_context* mupdf_get_my_alloc_context();
extern int mupdf_get_cache_size();
extern int mupdf_error_code(fz_context *ctx);
extern char* mupdf_error_message(fz_context *ctx);
DLL_PUBLIC fz_alloc_context* mupdf_get_my_alloc_context();
DLL_PUBLIC int mupdf_get_cache_size();
DLL_PUBLIC int mupdf_error_code(fz_context *ctx);
DLL_PUBLIC char* mupdf_error_message(fz_context *ctx);

// this will turn the wrappers defined below into their declarations
#define MUPDF_WRAP(wrapper_name, ret_type, failure_value, call, ...) \
Expand Down

0 comments on commit f0436c6

Please sign in to comment.