shithub: jbig2

Download patch

ref: 9320ddb95f4c003e2d25abf301d07ca1a06eacfa
parent: a16825bb84c139c37b76c48d1ab22aa3431ad0fe
author: Sebastian Rasmussen <sebras@gmail.com>
date: Tue Apr 24 18:32:16 EDT 2018

jbig2dec: Paper over the fact that VS 2010 and earlier may not have SIZE_MAX.

--- a/config_win32.h
+++ b/config_win32.h
@@ -37,6 +37,9 @@
 typedef unsigned short int uint16_t;
 typedef unsigned int uint32_t;
 typedef unsigned __int64 uint64_t;
+#ifndef SIZE_MAX
+#define SIZE_MAX (~((size_t) 0))
+#endif
 # endif
 
 /* VS 2008 and later have vsnprintf */