summaryrefslogtreecommitdiff
path: root/external/poppler/poppler-snprintf.patch.1
blob: 389a5b0fc97e4e77759f486f43615ac0e340e7d6 (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
41
42
43
44
45
46
47
48
49
50
--- poppler-0.22.5/poppler/Catalog.cc	2013-06-09 12:16:12.000000000 +0200
+++ poppler-0.22.5/poppler/Catalog.cc	2013-07-08 16:54:30.712095880 +0200
@@ -40,6 +40,14 @@
 
 #include <stddef.h>
 #include <stdlib.h>
+#ifdef _WIN32
+#  ifdef __MINGW32__
+#    define _SNPRINTF_DLLIMPORT
+#  endif
+#  ifdef _MSC_VER
+#    include <systools/win32/snprintf.h>
+#  endif
+#endif
 #include "goo/gmem.h"
 #include "Object.h"
 #include "PDFDoc.h"
--- poppler-0.22.5/poppler/GlobalParams.cc	2013-03-25 22:48:34.000000000 +0100
+++ poppler-0.22.5/poppler/GlobalParams.cc	2013-07-08 16:55:04.753303654 +0200
@@ -57,6 +57,12 @@
 #ifdef _WIN32
 #  include <shlobj.h>
 #  include <mbstring.h>
+#  ifdef __MINGW32__
+#    define _SNPRINTF_DLLIMPORT
+#  endif
+#  ifdef _MSC_VER
+#    include <systools/win32/snprintf.h>
+#  endif
 #endif
 #include "goo/gmem.h"
 #include "goo/GooString.h"
--- poppler-0.22.5/poppler/PageLabelInfo.cc	2013-03-25 22:48:34.000000000 +0100
+++ poppler-0.22.5/poppler/PageLabelInfo.cc	2013-07-08 16:56:47.977901129 +0200
@@ -17,6 +17,14 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <assert.h>
+#ifdef _WIN32
+#  ifdef __MINGW32__
+#    define _SNPRINTF_DLLIMPORT
+#  endif
+#  ifdef _MSC_VER
+#    include <systools/win32/snprintf.h>
+#  endif
+#endif
 
 #include "PageLabelInfo.h"
 
Only in poppler-0.22.5: poppler-snprintf.patch.1