Root/scim-pinyin/patches/010-fix-compile-error.patch

1add miss head files
2
3From: Xiangfu Liu <xiangfu@sharism.cc>
4
5
6---
7
8 src/scim_phrase.cpp | 1 +
9 src/scim_pinyin.cpp | 1 +
10 src/scim_pinyin_phrase.cpp | 1 +
11 src/scim_special_table.cpp | 1 +
12 4 files changed, 4 insertions(+), 0 deletions(-)
13
14
15diff --git a/src/scim_phrase.cpp b/src/scim_phrase.cpp
16index b8618ca..2534c5f 100644
17--- a/src/scim_phrase.cpp
18+++ b/src/scim_phrase.cpp
19@@ -28,6 +28,7 @@
20 #define SCIM_PHRASE_MAX_RELATION 1000
21 
22 #include <scim.h>
23+#include <string.h>
24 #include "scim_pinyin_private.h"
25 #include "scim_phrase.h"
26 
27diff --git a/src/scim_pinyin.cpp b/src/scim_pinyin.cpp
28index 0c281ec..7a762b6 100644
29--- a/src/scim_pinyin.cpp
30+++ b/src/scim_pinyin.cpp
31@@ -28,6 +28,7 @@
32 #define Uses_SCIM_CONFIG_PATH
33 #define Uses_SCIM_LOOKUP_TABLE
34 
35+#include <string.h>
36 #include <scim.h>
37 #include "scim_pinyin.h"
38 
39diff --git a/src/scim_pinyin_phrase.cpp b/src/scim_pinyin_phrase.cpp
40index e44e9df..ab9997b 100644
41--- a/src/scim_pinyin_phrase.cpp
42+++ b/src/scim_pinyin_phrase.cpp
43@@ -26,6 +26,7 @@
44 #define Uses_SCIM_CONFIG_PATH
45 #define Uses_SCIM_LOOKUP_TABLE
46 
47+#include <string.h>
48 #include <scim.h>
49 #include "scim_pinyin_private.h"
50 #include "scim_phrase.h"
51diff --git a/src/scim_special_table.cpp b/src/scim_special_table.cpp
52index 6a46e8f..b47cbcf 100644
53--- a/src/scim_special_table.cpp
54+++ b/src/scim_special_table.cpp
55@@ -20,6 +20,7 @@
56 #define Uses_STL_IOMANIP
57 #define Uscs_C_STRING
58 
59+#include <string.h>
60 #include <time.h>
61 #include <scim.h>
62 #include "scim_pinyin_private.h"
63

Archive Download this file



interactive