fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / libmwaw / 0001-if-ptr-to-member-var.-is-defined-ensure-the-class-is.patch.1
blobb9ed2e11c3ccb3646ec6bd3755f23d3578ddec40
1 From 2d178367e7029a98fb555a084c1c946c8826ff06 Mon Sep 17 00:00:00 2001
2 From: David Tardon <dtardon@redhat.com>
3 Date: Tue, 24 Nov 2015 15:15:36 +0100
4 Subject: [PATCH] if ptr to member var. is defined, ensure the class is
5  complete
7 ... because MSVC represents pointers to member as variable size,
8 depending on context (e.g., multiple inheritance). So it can happen that
9 the size of the pointer in the header (where the class is only
10 forward-declared) differs from the size of the same pointer in an impl.
11 file (where the class is complete).
12 ---
13  src/lib/ClarisWksDocument.hxx | 1 +
14  src/lib/GreatWksDocument.hxx  | 1 +
15  src/lib/MsWksDocument.hxx     | 1 +
16  3 files changed, 3 insertions(+)
18 diff --git a/src/lib/ClarisWksDocument.hxx b/src/lib/ClarisWksDocument.hxx
19 index 2b70860..3003b6a 100644
20 --- a/src/lib/ClarisWksDocument.hxx
21 +++ b/src/lib/ClarisWksDocument.hxx
22 @@ -42,6 +42,7 @@
24  #include "libmwaw_internal.hxx"
26 +#include "MWAWParser.hxx"
27  #include "MWAWPosition.hxx"
29  #include "ClarisWksStruct.hxx"
30 diff --git a/src/lib/GreatWksDocument.hxx b/src/lib/GreatWksDocument.hxx
31 index 2e00451..2e13dc2 100644
32 --- a/src/lib/GreatWksDocument.hxx
33 +++ b/src/lib/GreatWksDocument.hxx
34 @@ -41,6 +41,7 @@
36  #include "MWAWCell.hxx"
37  #include "MWAWDebug.hxx"
38 +#include "MWAWParser.hxx"
40  namespace GreatWksDocumentInternal
41  {
42 diff --git a/src/lib/MsWksDocument.hxx b/src/lib/MsWksDocument.hxx
43 index a212e7f..e96f5dd 100644
44 --- a/src/lib/MsWksDocument.hxx
45 +++ b/src/lib/MsWksDocument.hxx
46 @@ -44,6 +44,7 @@
48  #include "MWAWDebug.hxx"
49  #include "MWAWCell.hxx"
50 +#include "MWAWParser.hxx"
52  namespace MsWksDocumentInternal
53  {
54 -- 
55 2.5.0