build: use jpeg_boolean with more recent libjpeg versions.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gerd Hoffmann 2010-07-08 11:40:52 +02:00 committed by Alon Levy
parent bed8f911ce
commit 8879a45d56
2 changed files with 10 additions and 2 deletions

View File

@ -20,6 +20,10 @@
#include "debug.h"
#include "utils.h"
#if JPEG_LIB_VERSION < 70
#define jpeg_boolean boolean
#endif
static void op_begin_decode(SpiceJpegDecoder *decoder,
uint8_t* data,
int data_size,
@ -45,7 +49,7 @@ extern "C" {
{
}
static boolean jpeg_decoder_fill_input_buffer(j_decompress_ptr cinfo)
static jpeg_boolean jpeg_decoder_fill_input_buffer(j_decompress_ptr cinfo)
{
PANIC("no more data for jpeg");
return FALSE;

View File

@ -21,6 +21,10 @@
#include "utils.h"
#include "mjpeg_decoder.h"
#if JPEG_LIB_VERSION < 70
#define jpeg_boolean boolean
#endif
enum {
STATE_READ_HEADER,
STATE_START_DECOMPRESS,
@ -34,7 +38,7 @@ extern "C" {
{
}
static boolean fill_input_buffer(j_decompress_ptr cinfo)
static jpeg_boolean fill_input_buffer(j_decompress_ptr cinfo)
{
return FALSE;
}