Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix euslisp: FTBFS: jpegmemcd.c:29:3: error: implicit declaration of function ‘jpeg_memio_dest’ #507

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lisp/image/jpeg/jpegmemcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,17 @@
#include <stdio.h>
#include "jpeglib.h"
#include <setjmp.h>

#if JPEG_LIB_VERSION >= 80 || defined(MEM_SRCDST_SUPPORTED)
#define jpeg_memio_dest(cinfo, outbuffer, outsize) \
jpeg_mem_dest((j_compress_ptr)cinfo, (unsigned char **)outbuffer, (unsigned long *)outsize)

#define jpeg_memio_src(cinfo, inbuffer, insize) \
jpeg_mem_src((j_decompress_ptr)cinfo, (const unsigned char *)inbuffer, (unsigned long)insize)
#else
GLOBAL(void) jpeg_memio_dest (j_compress_ptr cinfo, JOCTET *jpegimgbuf, long *size);
GLOBAL(void) jpeg_memio_src (j_decompress_ptr cinfo, JOCTET *buf, long size);
#endif


int JPEG_compress(JSAMPLE *image_buffer, long width, long height,
Expand Down
Loading