summaryrefslogtreecommitdiff
path: root/Build/source/libs/xpdf/xpdf-3.02-PATCHES/patch-16-size-of-struct
blob: 8dee7f1f297bb9a37488fcdee3385ac24fa23a5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
	Not needed, DISABLE_OUTLINE is no longer used in pdftex sources,
	but might be nevertheless useful.

	from:
		Han The Thanh <thanh@pdftex.org>
		Martin Schroeder <martin@pdftex.org>

diff -ur -N xpdf-3.02.orig/xpdf/PDFDoc.h xpdf-3.02/xpdf/PDFDoc.h
--- xpdf-3.02.orig/xpdf/PDFDoc.h	2007-02-27 23:05:52.000000000 +0100
+++ xpdf-3.02/xpdf/PDFDoc.h	2008-07-17 02:29:04.000000000 +0200
@@ -5,6 +5,9 @@
 // Copyright 1996-2003 Glyph & Cog, LLC
 //
 //========================================================================
+//  Modified for TeX Live by Peter Breitenlohner <tex-live@tug.org>
+//  See top-level ChangeLog for a list of all modifications
+//========================================================================
 
 #ifndef PDFDOC_H
 #define PDFDOC_H
@@ -171,13 +174,15 @@
   double pdfVersion;
   XRef *xref;
   Catalog *catalog;
+  GBool ok;
+  int errCode;
+/* Keep the size of the structure the same whether DISABLE_OUTLINE or
+   not, and put it last to try to find errors more quickly.  */
 #ifndef DISABLE_OUTLINE
   Outline *outline;
+#else
+  void *dummy;
 #endif
-
-
-  GBool ok;
-  int errCode;
 };
 
 #endif