fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / poppler / poppler-snprintf.patch.1
blobaaced8e099c2bd61fa56cc0c7a158df410224fff
1 --- poppler-0.22.5/poppler/Catalog.cc   2013-06-09 12:16:12.000000000 +0200
2 +++ poppler-0.22.5/poppler/Catalog.cc   2013-07-08 16:54:30.712095880 +0200
3 @@ -40,6 +40,14 @@
4  
5  #include <stddef.h>
6  #include <stdlib.h>
7 +#ifdef _WIN32
8 +#  ifdef __MINGW32__
9 +#    define _SNPRINTF_DLLIMPORT
10 +#  endif
11 +#  ifdef _MSC_VER
12 +#    include <systools/win32/snprintf.h>
13 +#  endif
14 +#endif
15  #include "goo/gmem.h"
16  #include "Object.h"
17  #include "PDFDoc.h"
18 --- poppler-0.22.5/poppler/GlobalParams.cc      2013-03-25 22:48:34.000000000 +0100
19 +++ poppler-0.22.5/poppler/GlobalParams.cc      2013-07-08 16:55:04.753303654 +0200
20 @@ -57,6 +57,12 @@
21  #ifdef _WIN32
22  #  include <shlobj.h>
23  #  include <mbstring.h>
24 +#  ifdef __MINGW32__
25 +#    define _SNPRINTF_DLLIMPORT
26 +#  endif
27 +#  ifdef _MSC_VER
28 +#    include <systools/win32/snprintf.h>
29 +#  endif
30  #endif
31  #include "goo/gmem.h"
32  #include "goo/GooString.h"
33 --- poppler-0.22.5/poppler/PageLabelInfo.cc     2013-03-25 22:48:34.000000000 +0100
34 +++ poppler-0.22.5/poppler/PageLabelInfo.cc     2013-07-08 16:56:47.977901129 +0200
35 @@ -17,6 +17,14 @@
36  #include <stdlib.h>
37  #include <stdio.h>
38  #include <assert.h>
39 +#ifdef _WIN32
40 +#  ifdef __MINGW32__
41 +#    define _SNPRINTF_DLLIMPORT
42 +#  endif
43 +#  ifdef _MSC_VER
44 +#    include <systools/win32/snprintf.h>
45 +#  endif
46 +#endif
48  #include "PageLabelInfo.h"
49  #include "PageLabelInfo_p.h"