Bug 555777 - Export to MNG animation fails

Fix calling convention for libmng functions in file-mng plug-in.
This commit is contained in:
Edward E 2017-06-04 00:09:27 -05:00 committed by Michael Natterer
parent 467573ce6f
commit d2de5a0c30
2 changed files with 17 additions and 14 deletions

View File

@ -1524,6 +1524,9 @@ if test "x$with_libmng" != xno && test -z "$MNG_LIBS" &&
if test "$mng_ok" = yes; then
have_libmng=yes
FILE_MNG='file-mng$(EXEEXT)'; MNG_LIBS="-lmng $JPEG_LIBS $PNG_LIBS"; MNG_CFLAGS="$PNG_CFLAGS"
if test "x$platform_win32" = "xyes"; then
MNG_CFLAGS="$MNG_CFLAGS -DMNG_USE_DLL"
fi
else
have_libmng="no (MNG header file not found)"
fi

View File

@ -186,15 +186,15 @@ struct mnglib_userdata_t
* Function prototypes
*/
static mng_ptr myalloc (mng_size_t size);
static void myfree (mng_ptr ptr,
mng_size_t size);
static mng_bool myopenstream (mng_handle handle);
static mng_bool myclosestream (mng_handle handle);
static mng_bool mywritedata (mng_handle handle,
mng_ptr buf,
mng_uint32 size,
mng_uint32 *written_size);
static mng_ptr MNG_DECL myalloc (mng_size_t size);
static void MNG_DECL myfree (mng_ptr ptr,
mng_size_t size);
static mng_bool MNG_DECL myopenstream (mng_handle handle);
static mng_bool MNG_DECL myclosestream (mng_handle handle);
static mng_bool MNG_DECL mywritedata (mng_handle handle,
mng_ptr buf,
mng_uint32 size,
mng_uint32 *written_size);
static gint32 parse_chunks_type_from_layer_name (const gchar *str);
@ -232,7 +232,7 @@ static void run (const gchar *name,
* Callbacks for libmng
*/
static mng_ptr
static mng_ptr MNG_DECL
myalloc (mng_size_t size)
{
gpointer ptr;
@ -245,26 +245,26 @@ myalloc (mng_size_t size)
return ((mng_ptr) ptr);
}
static void
static void MNG_DECL
myfree (mng_ptr ptr,
mng_size_t size)
{
g_free (ptr);
}
static mng_bool
static mng_bool MNG_DECL
myopenstream (mng_handle handle)
{
return MNG_TRUE;
}
static mng_bool
static mng_bool MNG_DECL
myclosestream (mng_handle handle)
{
return MNG_TRUE;
}
static mng_bool
static mng_bool MNG_DECL
mywritedata (mng_handle handle,
mng_ptr buf,
mng_uint32 size,