shithub: jbig2

Download patch

ref: a16f29153ec28068152c104aa9d6b455d6829f46
parent: 29f7b09614a4a98b09c4b6255f0f0fea5a65378f
author: Alex Cherepanov <alex.cherepanov@artifex.com>
date: Mon Jan 28 10:34:38 EST 2013

Bug 693284: Conditional inclusion of memento header.


--- a/jbig2.h
+++ b/jbig2.h
@@ -29,6 +29,8 @@
  * predefine MEMENTO whilst building. */
 /* #define MEMENTO */
 
+/* SumatraPDF: allow to build without MEMENTO (clashes with MuPDF's) */
+#ifndef JBIG_NO_MEMENTO
 /* If we are building as part of GS then make sure we use the version
  * of MEMENTO that is part of gs (in case of version skew) */
 #ifdef GSBUILD
@@ -35,6 +37,7 @@
 #include "../base/memento.h"
 #else
 #include "memento.h"
+#endif
 #endif
 
 /* warning levels */