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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
|
#
# Patch managed by http://www.holgerschurig.de/patcher.html
#
--- qpdf2_2.2.1/qpdfview.cpp~hack-the-hack.patch
+++ qpdf2_2.2.1/qpdfview.cpp
@@ -4,7 +4,7 @@
#ifdef __GNUC__
#pragma implementation
#endif
-
+#define private public
#include "aconf.h"
#include "qpdf.h"
--- qpdf2_2.2.1/qpdf.h~hack-the-hack.patch
+++ qpdf2_2.2.1/qpdf.h
@@ -1,3 +1,4 @@
+#define private public
#ifndef __QPDF_H__
#define __QPDF_H__
@@ -12,6 +13,8 @@
#include "signal.h"
+#define private public
+#include <qobject.h>
#include <qpe/qpeapplication.h>
#include <qpe/resource.h>
#include <qpe/applnk.h>
--- qpdf2_2.2.1/qpdf.cpp~hack-the-hack.patch
+++ qpdf2_2.2.1/qpdf.cpp
@@ -12,11 +12,11 @@
//
//========================================================================
-
+#define private public
#include "qpdf.h"
#include <qpe/qpemenubar.h>
#include <qdir.h>
-
+#include <errno.h>
#ifdef AUTOTEST
#define MAX_ZOOM 1.2
#else
@@ -2636,15 +2636,6 @@
setRenameBar( false );
}
-
-#ifdef ARM
-extern int errno;
-#else
-extern "C" {
- int errno;
-};
-#endif
-
void
QPDFWindow::writeConfig()
{
--- qpdf2_2.2.1/textedit.cpp~hack-the-hack.patch
+++ qpdf2_2.2.1/textedit.cpp
@@ -19,7 +19,7 @@
**********************************************************************/
#include <stdlib.h> //getenv
-
+#define private public
#include <qpe/global.h>
#include <qpe/fileselector.h>
#include <qpe/applnk.h>
--- qpdf2_2.2.1/autotest.cpp~hack-the-hack.patch
+++ qpdf2_2.2.1/autotest.cpp
@@ -7,7 +7,7 @@
qobject.h - make the activate_xxx functions public
*/
-
+#define private public
#include "qpdf.h"
#ifdef AUTOTEST
//#define MEM_LEAKS_EVENT_COUNT 50000
--- qpdf2_2.2.1/qpdffileselector.cpp~hack-the-hack.patch
+++ qpdf2_2.2.1/qpdffileselector.cpp
@@ -3,7 +3,7 @@
*/
-
+#define private public
#include "qpdf.h"
#include <qwmatrix.h>
--- qpdf2_2.2.1/qpdfconfig.cpp~hack-the-hack.patch
+++ qpdf2_2.2.1/qpdfconfig.cpp
@@ -1,3 +1,4 @@
+#define private public
#include "qpdf.h"
#include <qpushbutton.h>
#include <qradiobutton.h>
--- qpdf2_2.2.1/qqimage.cpp~hack-the-hack.patch
+++ qpdf2_2.2.1/qqimage.cpp
@@ -8,7 +8,7 @@
"protected:" and add "friend class QQImage" to class QImage.
*/
-
+#define private public
/****************************************************************************
** $Id$
--- qpdf2_2.2.1/qdocnotes.cpp~hack-the-hack.patch
+++ qpdf2_2.2.1/qdocnotes.cpp
@@ -5,7 +5,7 @@
#include <qpe/stringutil.h>
#include <qfile.h>
#include <qfileinfo.h>
-
+#include <errno.h>
#define assert(X)
QDocNote::QDocNote()
@@ -698,18 +698,6 @@
return(save(m_filepath, state));
}
-
-#ifdef ARM
-extern int errno;
-extern char *strerror(int);
-#else
-extern "C" {
- int errno;
- extern char *strerror(int);
-}
-#endif
-
-
bool
QDocNotes::save(const QString &filepath, QDocState *state)
{
--- qpdf2_2.2.1/xpdf/PDFDoc.cc~hack-the-hack.patch
+++ qpdf2_2.2.1/xpdf/PDFDoc.cc
@@ -7,7 +7,7 @@
//========================================================================
#include <aconf.h>
-
+#include <errno.h>
#ifdef USE_GCC_PRAGMAS
#pragma implementation
#endif
@@ -205,16 +205,6 @@
}
}
-#ifdef ARM
-extern int errno;
-extern char *strerror(int);
-#else
-extern "C" {
- int errno;
- extern char *strerror(int);
-}
-#endif
-
void PDFDoc::displayPage(OutputDev *out, int page, fouble hDPI, fouble vDPI,
int rotate, GBool doLinks,
GBool (*abortCheckCbk)(void *data),
|