summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--com32/lib/jpeg/tinyjpeg-internal.h2
-rw-r--r--com32/lib/jpeg/tinyjpeg.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/com32/lib/jpeg/tinyjpeg-internal.h b/com32/lib/jpeg/tinyjpeg-internal.h
index bb5c6707..8e6d4fdf 100644
--- a/com32/lib/jpeg/tinyjpeg-internal.h
+++ b/com32/lib/jpeg/tinyjpeg-internal.h
@@ -152,7 +152,7 @@ enum std_markers {
#define SANITY_CHECK 1
-#if DEBUG
+#if JPEG_DEBUG
#define error(fmt, args...) do { \
snprintf(error_string, sizeof(error_string), fmt, ## args); \
return -1; \
diff --git a/com32/lib/jpeg/tinyjpeg.c b/com32/lib/jpeg/tinyjpeg.c
index 2927b718..47317d00 100644
--- a/com32/lib/jpeg/tinyjpeg.c
+++ b/com32/lib/jpeg/tinyjpeg.c
@@ -440,7 +440,7 @@ static void build_default_huffman_tables(struct jdec_private *priv)
static void print_SOF(const unsigned char *stream)
{
-#if DEBUG
+#if JPEG_DEBUG
int width, height, nr_components, precision;
const char *nr_components_to_string[] = {
"????",
@@ -664,7 +664,7 @@ static int parse_DRI(struct jdec_private *priv, const unsigned char *stream)
priv->restart_interval = be16_to_cpu(stream+2);
-#if DEBUG
+#if JPEG_DEBUG
trace("Restart interval = %d\n", priv->restart_interval);
#endif