author | simon <simon> | 2002-12-28 10:41:25 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-28 10:41:25 (UTC) |
commit | 857560112f6df95a84040b43462731f63824b3d7 (patch) (unidiff) | |
tree | 9a1e8734e427838cf33b3eb764335bf2c62b930b | |
parent | 4c05428a793bcfed723377ad33dadac5ddcd1b99 (diff) | |
download | opie-857560112f6df95a84040b43462731f63824b3d7.zip opie-857560112f6df95a84040b43462731f63824b3d7.tar.gz opie-857560112f6df95a84040b43462731f63824b3d7.tar.bz2 |
- include string.h for memcmp
-rw-r--r-- | noncore/apps/opie-reader/StyleConsts.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/StyleConsts.h b/noncore/apps/opie-reader/StyleConsts.h index 5aacdf0..9701d19 100644 --- a/noncore/apps/opie-reader/StyleConsts.h +++ b/noncore/apps/opie-reader/StyleConsts.h | |||
@@ -1,30 +1,31 @@ | |||
1 | #ifndef __STYLECONSTS_H | 1 | #ifndef __STYLECONSTS_H |
2 | #define __STYLECONSTS_H | 2 | #define __STYLECONSTS_H |
3 | 3 | ||
4 | typedef unsigned short StyleType; | 4 | typedef unsigned short StyleType; |
5 | 5 | ||
6 | #include <stdlib.h> | 6 | #include <stdlib.h> |
7 | #include <string.h> | ||
7 | #include <qglobal.h> | 8 | #include <qglobal.h> |
8 | class QPixmap; | 9 | class QPixmap; |
9 | 10 | ||
10 | struct GraphicLink | 11 | struct GraphicLink |
11 | { | 12 | { |
12 | QPixmap* graphic; | 13 | QPixmap* graphic; |
13 | bool isLink; | 14 | bool isLink; |
14 | unsigned long link; | 15 | unsigned long link; |
15 | GraphicLink(QPixmap* p, bool isLnk, unsigned long tgt) : | 16 | GraphicLink(QPixmap* p, bool isLnk, unsigned long tgt) : |
16 | graphic(p), isLink(isLnk), link(tgt) {} | 17 | graphic(p), isLink(isLnk), link(tgt) {} |
17 | ~GraphicLink(); | 18 | ~GraphicLink(); |
18 | }; | 19 | }; |
19 | 20 | ||
20 | struct pmstore | 21 | struct pmstore |
21 | { | 22 | { |
22 | unsigned int count; | 23 | unsigned int count; |
23 | GraphicLink* graphic; | 24 | GraphicLink* graphic; |
24 | pmstore(QPixmap* p, bool isLnk, unsigned long tgt) : count(1) | 25 | pmstore(QPixmap* p, bool isLnk, unsigned long tgt) : count(1) |
25 | { | 26 | { |
26 | graphic = new GraphicLink(p, isLnk, tgt); | 27 | graphic = new GraphicLink(p, isLnk, tgt); |
27 | } | 28 | } |
28 | ~pmstore(); | 29 | ~pmstore(); |
29 | }; | 30 | }; |
30 | 31 | ||