shithub: jbig2

Download patch

ref: 609901fe1d5496caeae2289ee20d7be965e413b0
parent: 6e49f7e6d0c680ad0962cf7c620d67aa943c48a7
author: Robin Watts <Robin.Watts@artifex.com>
date: Wed Jun 1 12:22:40 EDT 2011

Tweak jbig2dec os_types.h for android mupdf build.

If HAVE_STDINT_H is defined we are supposed to be getting our definitions
from stdint.h. Instead the header defines them anyway. Fix this. This showed
up when building MuPDF for Android.

--- a/os_types.h
+++ b/os_types.h
@@ -40,7 +40,7 @@
 # include "config_types.h"
 #elif defined(_WIN32) || defined(__WIN32__)
 # include "config_win32.h"
-#else
+#elif !defined(HAVE_STDINT_H)
    typedef unsigned char  uint8_t;
    typedef unsigned short uint16_t;
    typedef unsigned int   uint32_t;