diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2010-07-08 11:40:52 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2010-12-07 21:36:37 +0200 |
commit | 8879a45d5611c7d9294d4e3f6d4e133094288119 (patch) | |
tree | 21cc441677bb1dbea91a66ee844f63f0f85e4363 /client/mjpeg_decoder.cpp | |
parent | bed8f911ce66b39aeaa8942a5deaa13d8481cd86 (diff) | |
download | spice-8879a45d5611c7d9294d4e3f6d4e133094288119.tar.gz spice-8879a45d5611c7d9294d4e3f6d4e133094288119.tar.xz spice-8879a45d5611c7d9294d4e3f6d4e133094288119.zip |
build: use jpeg_boolean with more recent libjpeg versions.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'client/mjpeg_decoder.cpp')
-rw-r--r-- | client/mjpeg_decoder.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/mjpeg_decoder.cpp b/client/mjpeg_decoder.cpp index 2470fb1e..f9cb6030 100644 --- a/client/mjpeg_decoder.cpp +++ b/client/mjpeg_decoder.cpp @@ -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; } |