]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/qpdf2/files/hack-the-hack.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / qpdf2 / files / hack-the-hack.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 --- qpdf2_2.2.1/qpdfview.cpp~hack-the-hack.patch
7 +++ qpdf2_2.2.1/qpdfview.cpp
8 @@ -4,7 +4,7 @@
9  #ifdef __GNUC__
10  #pragma implementation
11  #endif
12 -
13 +#define private public
14  #include "aconf.h"
15  
16  #include "qpdf.h"
17 --- qpdf2_2.2.1/qpdf.h~hack-the-hack.patch
18 +++ qpdf2_2.2.1/qpdf.h
19 @@ -1,3 +1,4 @@
20 +#define private public
21  #ifndef __QPDF_H__
22  #define __QPDF_H__
23  
24 @@ -12,6 +13,8 @@
25  
26  #include "signal.h"
27  
28 +#define private public
29 +#include <qobject.h>
30  #include <qpe/qpeapplication.h>
31  #include <qpe/resource.h>
32  #include <qpe/applnk.h>
33 --- qpdf2_2.2.1/qpdf.cpp~hack-the-hack.patch
34 +++ qpdf2_2.2.1/qpdf.cpp
35 @@ -12,11 +12,11 @@
36  //
37  //========================================================================
38  
39 -
40 +#define private public
41  #include "qpdf.h"
42  #include <qpe/qpemenubar.h>
43  #include <qdir.h>
44 -
45 +#include <errno.h>
46  #ifdef AUTOTEST
47  #define MAX_ZOOM 1.2
48  #else
49 @@ -2636,15 +2636,6 @@
50    setRenameBar( false );
51  }
52  
53 -
54 -#ifdef ARM
55 -extern int errno;
56 -#else
57 -extern "C" {
58 -  int errno;
59 -};
60 -#endif
61 -
62  void
63  QPDFWindow::writeConfig()
64  {
65 --- qpdf2_2.2.1/textedit.cpp~hack-the-hack.patch
66 +++ qpdf2_2.2.1/textedit.cpp
67 @@ -19,7 +19,7 @@
68  **********************************************************************/
69  
70  #include <stdlib.h> //getenv
71 -
72 +#define private public
73  #include <qpe/global.h>
74  #include <qpe/fileselector.h>
75  #include <qpe/applnk.h>
76 --- qpdf2_2.2.1/autotest.cpp~hack-the-hack.patch
77 +++ qpdf2_2.2.1/autotest.cpp
78 @@ -7,7 +7,7 @@
79    qobject.h    -  make the activate_xxx functions public
80  
81  */
82 -
83 +#define private public
84  #include "qpdf.h"
85  #ifdef AUTOTEST
86  //#define MEM_LEAKS_EVENT_COUNT 50000
87 --- qpdf2_2.2.1/qpdffileselector.cpp~hack-the-hack.patch
88 +++ qpdf2_2.2.1/qpdffileselector.cpp
89 @@ -3,7 +3,7 @@
90  
91  
92  */
93 -
94 +#define private public
95  #include "qpdf.h"
96  
97  #include <qwmatrix.h>
98 --- qpdf2_2.2.1/qpdfconfig.cpp~hack-the-hack.patch
99 +++ qpdf2_2.2.1/qpdfconfig.cpp
100 @@ -1,3 +1,4 @@
101 +#define private public
102  #include "qpdf.h"
103  #include <qpushbutton.h>
104  #include <qradiobutton.h>
105 --- qpdf2_2.2.1/qqimage.cpp~hack-the-hack.patch
106 +++ qpdf2_2.2.1/qqimage.cpp
107 @@ -8,7 +8,7 @@
108  "protected:" and add "friend class QQImage" to class QImage.
109  
110  */
111 -
112 +#define private public
113  
114  /****************************************************************************
115  ** $Id: qt/src/kernel/qimage.cpp   2.3.8-snapshot-20040114   edited 2003-12-29 $
116 --- qpdf2_2.2.1/qdocnotes.cpp~hack-the-hack.patch
117 +++ qpdf2_2.2.1/qdocnotes.cpp
118 @@ -5,7 +5,7 @@
119  #include <qpe/stringutil.h>
120  #include <qfile.h>
121  #include <qfileinfo.h>
122 -
123 +#include <errno.h>
124  #define assert(X)
125  
126  QDocNote::QDocNote()
127 @@ -698,18 +698,6 @@
128    return(save(m_filepath, state));
129  }
130  
131 -
132 -#ifdef ARM
133 -extern int errno;
134 -extern char *strerror(int);
135 -#else
136 -extern "C" {
137 -  int errno;
138 -  extern char *strerror(int);
139 -}
140 -#endif
141 -
142 -
143  bool
144  QDocNotes::save(const QString &filepath, QDocState *state)
145  {
146 --- qpdf2_2.2.1/xpdf/PDFDoc.cc~hack-the-hack.patch
147 +++ qpdf2_2.2.1/xpdf/PDFDoc.cc
148 @@ -7,7 +7,7 @@
149  //========================================================================
150  
151  #include <aconf.h>
152 -
153 +#include <errno.h>
154  #ifdef USE_GCC_PRAGMAS
155  #pragma implementation
156  #endif
157 @@ -205,16 +205,6 @@
158    }
159  }
160  
161 -#ifdef ARM
162 -extern int errno;
163 -extern char *strerror(int);
164 -#else
165 -extern "C" {
166 -  int errno;
167 -  extern char *strerror(int);
168 -}
169 -#endif
170 -
171  void PDFDoc::displayPage(OutputDev *out, int page, fouble hDPI, fouble vDPI,
172                          int rotate, GBool doLinks,
173                          GBool (*abortCheckCbk)(void *data),