1 |
dirtyepic 09/07/01 06:18:09 |
2 |
|
3 |
Added: xmlcopyeditor-1.2.0.2-gcc44.patch |
4 |
Log: |
5 |
Fix building with GCC 4.4. Patch by caolan mcnamara. |
6 |
(Portage version: 2.2_rc33/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 app-editors/xmlcopyeditor/files/xmlcopyeditor-1.2.0.2-gcc44.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/xmlcopyeditor/files/xmlcopyeditor-1.2.0.2-gcc44.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/xmlcopyeditor/files/xmlcopyeditor-1.2.0.2-gcc44.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: xmlcopyeditor-1.2.0.2-gcc44.patch |
15 |
=================================================================== |
16 |
--- xmlcopyeditor-1.2.0.4.orig/src/replace.cpp |
17 |
+++ xmlcopyeditor-1.2.0.4/src/replace.cpp |
18 |
@@ -18,6 +18,7 @@ |
19 |
*/ |
20 |
|
21 |
#include <cstring> |
22 |
+#include <cstdio> |
23 |
#include "replace.h" |
24 |
|
25 |
int Replace::run ( |
26 |
--- xmlcopyeditor-1.2.0.4.orig/src/stringset.h |
27 |
+++ xmlcopyeditor-1.2.0.4/src/stringset.h |
28 |
@@ -25,6 +25,7 @@ |
29 |
#include <cmath> |
30 |
#include <climits> |
31 |
#include <cstring> |
32 |
+#include <stdint.h> |
33 |
#ifdef __WXMSW__ |
34 |
#include <mem.h> |
35 |
#endif |
36 |
--- xmlcopyeditor-1.2.0.4.orig/src/wrapaspell.cpp |
37 |
+++ xmlcopyeditor-1.2.0.4/src/wrapaspell.cpp |
38 |
@@ -19,6 +19,7 @@ |
39 |
|
40 |
#include <iostream> |
41 |
#include <stdexcept> |
42 |
+#include <cstdio> |
43 |
#include "wrapaspell.h" |
44 |
#include "aspell.h" |
45 |
#include "casehandler.h" |
46 |
--- xmlcopyeditor-1.2.0.4.orig/src/xmlassociatedtd.h |
47 |
+++ xmlcopyeditor-1.2.0.4/src/xmlassociatedtd.h |
48 |
@@ -24,6 +24,7 @@ |
49 |
#include <expat.h> |
50 |
#include <string> |
51 |
#include <memory> |
52 |
+#include <cstdio> |
53 |
#include "wrapexpat.h" |
54 |
|
55 |
struct DtdData : public ParserData |
56 |
--- xmlcopyeditor-1.2.0.4.orig/src/xmlassociatexsd.h |
57 |
+++ xmlcopyeditor-1.2.0.4/src/xmlassociatexsd.h |
58 |
@@ -25,6 +25,7 @@ |
59 |
#include <string> |
60 |
#include <map> |
61 |
#include <memory> |
62 |
+#include <cstdio> |
63 |
#include "wrapexpat.h" |
64 |
|
65 |
struct AssociateXsdData : public ParserData |
66 |
--- xmlcopyeditor-1.2.0.4.orig/src/xmlassociatexsl.h |
67 |
+++ xmlcopyeditor-1.2.0.4/src/xmlassociatexsl.h |
68 |
@@ -24,6 +24,7 @@ |
69 |
#include <expat.h> |
70 |
#include <string> |
71 |
#include <memory> |
72 |
+#include <cstdio> |
73 |
#include "wrapexpat.h" |
74 |
|
75 |
struct XslData : public ParserData |
76 |
--- xmlcopyeditor-1.2.0.4.orig/src/xmlpromptgenerator.cpp |
77 |
+++ xmlcopyeditor-1.2.0.4/src/xmlpromptgenerator.cpp |
78 |
@@ -31,7 +31,7 @@ |
79 |
#include "catalogresolver.h" |
80 |
|
81 |
// Xerces-C req'd for Schema parsing |
82 |
-#define XERCES_TMPLSINC |
83 |
+// #define XERCES_TMPLSINC |
84 |
|
85 |
#include <xercesc/util/NameIdPool.hpp> |
86 |
#include <xercesc/util/PlatformUtils.hpp> |
87 |
--- xmlcopyeditor-1.2.0.4.orig/src/xmlutf8reader.cpp |
88 |
+++ xmlcopyeditor-1.2.0.4/src/xmlutf8reader.cpp |
89 |
@@ -20,6 +20,7 @@ |
90 |
#include <string> |
91 |
#include <vector> |
92 |
#include <stdexcept> |
93 |
+#include <cstdio> |
94 |
#include <expat.h> |
95 |
#include "xmlutf8reader.h" |
96 |
|
97 |
--- xmlcopyeditor-1.2.0.4.orig/src/xsllocator.cpp |
98 |
+++ xmlcopyeditor-1.2.0.4/src/xsllocator.cpp |
99 |
@@ -46,7 +46,7 @@ |
100 |
return; |
101 |
|
102 |
char *value, *iterator; |
103 |
- value = strstr ( ( const char * ) data, "href=" ); |
104 |
+ value = strstr ( ( char * ) data, "href=" ); |
105 |
if ( !value || strlen ( value ) < 7 ) |
106 |
return; |
107 |
value += 6; |
108 |
@@ -55,7 +55,7 @@ |
109 |
{ |
110 |
if ( *iterator == '"' || *iterator == '\'' ) |
111 |
{ |
112 |
- *iterator = '\0'; |
113 |
+ *iterator = '\0'; //Danger, changing const char *data |
114 |
break; |
115 |
} |
116 |
} |