MINGW-packages/mingw-w64-jasper/004-jasper-exports.patch
2022-11-10 12:05:48 +01:00

26 lines
929 B
Diff

--- a/src/libjasper/jp2/jp2_cod.h
+++ a/src/libjasper/jp2/jp2_cod.h
@@ -288,10 +288,10 @@
* Box class.
\******************************************************************************/
-jp2_box_t *jp2_box_create(int type);
-void jp2_box_destroy(jp2_box_t *box);
-jp2_box_t *jp2_box_get(jas_stream_t *in);
-int jp2_box_put(jp2_box_t *box, jas_stream_t *out);
+JAS_DLLEXPORT jp2_box_t *jp2_box_create(int type);
+JAS_DLLEXPORT void jp2_box_destroy(jp2_box_t *box);
+JAS_DLLEXPORT jp2_box_t *jp2_box_get(jas_stream_t *in);
+JAS_DLLEXPORT int jp2_box_put(jp2_box_t *box, jas_stream_t *out);
JAS_ATTRIBUTE_CONST
static inline uint_least8_t JP2_DTYPETOBPC(uint_least8_t dtype)
@@ -309,6 +309,6 @@
#define ICC_CS_YCBCR 0x59436272
#define ICC_CS_GRAY 0x47524159
-const jp2_cdefchan_t *jp2_cdef_lookup(jp2_cdef_t *cdef, int channo);
+JAS_DLLEXPORT const jp2_cdefchan_t *jp2_cdef_lookup(jp2_cdef_t *cdef, int channo);
#endif