-
Notifications
You must be signed in to change notification settings - Fork 576
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[patch] libsixel: export required missing symbol for the windows targ…
…et (#2964) `sixel_allocator_new` is expected to be a part of libsixel API
- Loading branch information
1 parent
5fed195
commit 66d2fbf
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# This patch exports `sixel_allocator_new` to the generated dll library for the windows target | ||
# as bug fix. Upstream PR in https://github.com/saitoha/libsixel/pull/151 | ||
|
||
diff --git a/include/sixel.h.in b/include/sixel.h.in | ||
index bcdb66c..cf61715 100644 | ||
--- a/include/sixel.h.in | ||
+++ b/include/sixel.h.in | ||
@@ -506,7 +506,7 @@ extern "C" { | ||
#endif | ||
|
||
/* create allocator object */ | ||
-SIXELSTATUS | ||
+SIXELAPI SIXELSTATUS | ||
sixel_allocator_new( | ||
sixel_allocator_t /* out */ **ppallocator, /* allocator object to be created */ | ||
sixel_malloc_t /* in */ fn_malloc, /* custom malloc() function */ |