[PATCH] jpeg_boolean is a mingw32-libjpeg specific thing. Use a define check rather than a version check.
Tiziano Mueller
dev-zero at gentoo.org
Wed Dec 29 05:23:04 PST 2010
---
client/jpeg_decoder.cpp | 2 +-
client/mjpeg_decoder.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/client/jpeg_decoder.cpp b/client/jpeg_decoder.cpp
index f5a0198..18be6ae 100644
--- a/client/jpeg_decoder.cpp
+++ b/client/jpeg_decoder.cpp
@@ -20,7 +20,7 @@
#include "debug.h"
#include "utils.h"
-#if JPEG_LIB_VERSION < 70
+#ifndef jpeg_boolean
#define jpeg_boolean boolean
#endif
diff --git a/client/mjpeg_decoder.cpp b/client/mjpeg_decoder.cpp
index bad90d4..eed856b 100644
--- a/client/mjpeg_decoder.cpp
+++ b/client/mjpeg_decoder.cpp
@@ -21,7 +21,7 @@
#include "utils.h"
#include "mjpeg_decoder.h"
-#if JPEG_LIB_VERSION < 70
+#ifndef jpeg_boolean
#define jpeg_boolean boolean
#endif
--
1.7.3.4
--=-55kjsKJH/yrnfSBS+/u+--
More information about the Spice-devel
mailing list