From 76605634e68a362d2d546199d0d4aad68398e177 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Tue, 24 May 2016 05:50:10 -0700 Subject: [PATCH] MSVC doesn't define UINT32_MAX --- libImaging/Quant.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libImaging/Quant.c b/libImaging/Quant.c index 7f29dea9f..d9bc6c8cb 100644 --- a/libImaging/Quant.c +++ b/libImaging/Quant.c @@ -31,6 +31,11 @@ #include "QuantHash.h" #include "QuantHeap.h" +/* MSVC9.0 */ +#ifndef UINT32_MAX +#define UINT32_MAX 0xffffffff +#endif + #define NO_OUTPUT typedef struct {