blob: 26a96277b084ed8473a5a6cd8e6e36e5fc2c8749 (
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
|
--- misc/libmspub-0.0.3/src/lib/MSPUBParser.cpp 2012-08-21 11:40:41.000000000 +0200
+++ misc/build/libmspub-0.0.3/src/lib/MSPUBParser.cpp 2012-08-21 12:58:58.435884355 +0200
@@ -52,7 +52,9 @@
#include "TableInfo.h"
#include "VerticalAlign.h"
+#if !defined(_MSC_VER) && !defined(BOOST_CSTDINT_HPP)
using boost::int32_t;
+#endif
using boost::uint32_t;
libmspub::MSPUBParser::MSPUBParser(WPXInputStream *input, MSPUBCollector *collector)
@@ -1151,7 +1151,7 @@
ParagraphStyle ret;
bool isList = false;
- uint32_t bulletChar = '\u0000';
+ uint32_t bulletChar = 0;
NumberingType numberingType = STANDARD_WESTERN;
NumberingDelimiter numberingDelimiter = NO_DELIMITER;
boost::optional<unsigned> numberIfRestarted;
@@ -1256,7 +1256,7 @@
}
if (isList)
{
- if (bulletChar != '\u0000')
+ if (bulletChar)
{
ret.m_listInfo = ListInfo(bulletChar);
}
--- misc/libmspub-0.0.3/src/lib/libmspub_utils.h
+++ misc/build/libmspub-0.0.3/src/lib/libmspub_utils.h
@@ -43,7 +43,11 @@
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
+#ifndef BOOST_CSTDINT_HPP
typedef unsigned uint32_t;
+#endif
+typedef signed char int8_t;
+typedef short int16_t;
typedef int int32_t;
typedef unsigned __int64 uint64_t;
|