wok rev 7378
add:stardict
author | fireflyoo <lufeng369@gmail.com> |
---|---|
date | Thu Nov 25 22:38:14 2010 +0000 (2010-11-25) |
parents | 23b733bbc00a |
children | 8f46f2d72b1f |
files | stardict/receipt stardict/stuff/sigc++.patch stardict/stuff/stardict_gcc43.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/stardict/receipt Thu Nov 25 22:38:14 2010 +0000 1.3 @@ -0,0 +1,41 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="stardict" 1.7 +VERSION="3.0.1" 1.8 +CATEGORY="utilities" 1.9 +SHORT_DESC="A powerful international dictionary written in Gtk2" 1.10 +MAINTAINER="lufeng369@gmail.com" 1.11 +DEPENDS="enchant libsigc++ gtk+ xorg-libSM" 1.12 +BUILD_DEPENDS="bzip2 enchant-dev tar intltool popt libsigc++-dev gtk+-dev xorg-libSM-dev zlib-dev util-linux-ng-uuid-dev" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.14 +WEB_SITE="http://stardict.sourceforge.net" 1.15 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + cd $src 1.21 + patch -p1 < ../stuff/sigc++.patch || return 1 1.22 + patch -p1 < ../stuff/stardict_gcc43.patch || return 1 1.23 + 1.24 + ./configure \ 1.25 + --prefix=/usr \ 1.26 + --disable-man \ 1.27 + --disable-qqwry \ 1.28 + --sysconfdir=/etc \ 1.29 + --disable-gnome-support \ 1.30 + --disable-schemas-install \ 1.31 + --disable-espeak \ 1.32 + --disable-gucharmap \ 1.33 + --disable-festival \ 1.34 + --disable-advertisement \ 1.35 + --disable-updateinfo && 1.36 + make && make DESTDIR=$PWD/_pkg install 1.37 +} 1.38 + 1.39 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.40 +genpkg_rules() 1.41 +{ 1.42 + mkdir -p $fs/usr 1.43 + cp -a $_pkg/usr $fs/ 1.44 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/stardict/stuff/sigc++.patch Thu Nov 25 22:38:14 2010 +0000 2.3 @@ -0,0 +1,177 @@ 2.4 +diff -Naur stardict-3.0.1.orig/src/gconf_file.cpp stardict-3.0.1/src/gconf_file.cpp 2.5 +--- stardict-3.0.1.orig/src/gconf_file.cpp 2007-07-10 08:16:04.000000000 +0100 2.6 ++++ stardict-3.0.1/src/gconf_file.cpp 2008-04-11 18:18:43.000000000 +0100 2.7 +@@ -22,6 +22,8 @@ 2.8 + # include "config.h" 2.9 + #endif 2.10 + 2.11 ++#include <memory> 2.12 ++ 2.13 + #include <glib/gi18n.h> 2.14 + 2.15 + #include "gconf_file.hpp" 2.16 +diff -Naur stardict-3.0.1.orig/src/inifile.cpp stardict-3.0.1/src/inifile.cpp 2.17 +--- stardict-3.0.1.orig/src/inifile.cpp 2007-08-01 10:43:00.000000000 +0100 2.18 ++++ stardict-3.0.1/src/inifile.cpp 2008-04-11 18:18:43.000000000 +0100 2.19 +@@ -25,6 +25,7 @@ 2.20 + #include <vector> 2.21 + #include <cerrno> 2.22 + #include <cstring> 2.23 ++#include <cstdlib> 2.24 + #include <cstdio> 2.25 + #include <glib/gi18n.h> 2.26 + #include <glib/gstdio.h> 2.27 +diff -Naur stardict-3.0.1.orig/src/pangoview.cpp stardict-3.0.1/src/pangoview.cpp 2.28 +--- stardict-3.0.1.orig/src/pangoview.cpp 2007-09-25 08:11:48.000000000 +0100 2.29 ++++ stardict-3.0.1/src/pangoview.cpp 2008-04-11 18:18:43.000000000 +0100 2.30 +@@ -22,6 +22,8 @@ 2.31 + # include "config.h" 2.32 + #endif 2.33 + 2.34 ++#include <cstring> 2.35 ++ 2.36 + #include "gtktextviewpango.h" 2.37 + #include "utils.h" 2.38 + #include "skin.h"//for SkinCursor definition 2.39 +diff -Naur stardict-3.0.1.orig/src/prefsdlg.cpp stardict-3.0.1/src/prefsdlg.cpp 2.40 +--- stardict-3.0.1.orig/src/prefsdlg.cpp 2007-10-30 08:14:07.000000000 +0000 2.41 ++++ stardict-3.0.1/src/prefsdlg.cpp 2008-04-11 18:18:43.000000000 +0100 2.42 +@@ -21,6 +21,8 @@ 2.43 + # include "config.h" 2.44 + #endif 2.45 + 2.46 ++#include <cstdlib> 2.47 ++ 2.48 + #include <glib/gi18n.h> 2.49 + #include <glib/gstdio.h> 2.50 + 2.51 +diff -Naur stardict-3.0.1.orig/src/readword.cpp stardict-3.0.1/src/readword.cpp 2.52 +--- stardict-3.0.1.orig/src/readword.cpp 2007-07-10 08:16:04.000000000 +0100 2.53 ++++ stardict-3.0.1/src/readword.cpp 2008-04-11 17:53:43.000000000 +0100 2.54 +@@ -3,6 +3,7 @@ 2.55 + #endif 2.56 + 2.57 + #include <cstring> 2.58 ++#include <cstdlib> 2.59 + #include <string> 2.60 + 2.61 + #include <glib/gi18n.h> 2.62 +diff -Naur stardict-3.0.1.orig/src/sigc++/signal.h stardict-3.0.1/src/sigc++/signal.h 2.63 +--- stardict-3.0.1.orig/src/sigc++/signal.h 2007-07-10 08:16:01.000000000 +0100 2.64 ++++ stardict-3.0.1/src/sigc++/signal.h 2008-04-11 17:50:11.000000000 +0100 2.65 +@@ -18,7 +18,7 @@ 2.66 + //Compilers, such as older versions of SUN Forte C++, that do not allow this also often 2.67 + //do not allow a typedef to have the same name as a class in the typedef's definition. 2.68 + //For Sun Forte CC 5.7 (SUN Workshop 10), comment this out to fix the build. 2.69 +- #define SIGC_TYPEDEF_REDEFINE_ALLOWED 1 2.70 ++// #define SIGC_TYPEDEF_REDEFINE_ALLOWED 1 2.71 + #endif 2.72 + 2.73 + namespace sigc { 2.74 +diff -Naur stardict-3.0.1.orig/src/utils.cpp stardict-3.0.1/src/utils.cpp 2.75 +--- stardict-3.0.1.orig/src/utils.cpp 2007-10-22 03:25:02.000000000 +0100 2.76 ++++ stardict-3.0.1/src/utils.cpp 2008-04-11 18:18:43.000000000 +0100 2.77 +@@ -22,6 +22,8 @@ 2.78 + # include "config.h" 2.79 + #endif 2.80 + 2.81 ++#include <cstring> 2.82 ++ 2.83 + #include <glib.h> 2.84 + #include <glib/gi18n.h> 2.85 + #include <cstdlib> 2.86 +diff -Naur stardict-3.0.1.orig/src/x11_iskeyspressed.hpp stardict-3.0.1/src/x11_iskeyspressed.hpp 2.87 +--- stardict-3.0.1.orig/src/x11_iskeyspressed.hpp 2007-07-10 08:16:04.000000000 +0100 2.88 ++++ stardict-3.0.1/src/x11_iskeyspressed.hpp 2008-04-11 17:57:08.000000000 +0100 2.89 +@@ -1,6 +1,8 @@ 2.90 + #ifndef _X11_ISKEYSPRESSED_HPP_ 2.91 + #define _X11_ISKEYSPRESSED_HPP_ 2.92 + 2.93 ++#include <memory> 2.94 ++ 2.95 + #include <gdk/gdkx.h> 2.96 + #include <X11/keysym.h> 2.97 + #include <gtk/gtk.h> 2.98 + 2.99 + #ifdef _WIN32 2.100 +diff -Naur stardict-3.0.1.orig/stardict-plugins/stardict-espeak-tts-plugin/stardict_espeak.cpp stardict-3.0.1/stardict-plugins/stardict-espeak-tts-plugin/stardict_espeak.cpp 2.101 +--- stardict-3.0.1.orig/stardict-plugins/stardict-espeak-tts-plugin/stardict_espeak.cpp 2007-09-19 09:27:18.000000000 +0100 2.102 ++++ stardict-3.0.1/stardict-plugins/stardict-espeak-tts-plugin/stardict_espeak.cpp 2008-04-11 18:02:55.000000000 +0100 2.103 +@@ -1,4 +1,5 @@ 2.104 + #include "stardict_espeak.h" 2.105 ++#include <cstring> 2.106 + #include <espeak/speak_lib.h> 2.107 + #include <glib/gi18n.h> 2.108 + 2.109 +diff -Naur stardict-3.0.1.orig/stardict-plugins/stardict-html-parsedata-plugin/stardict_html_parsedata.cpp stardict-3.0.1/stardict-plugins/stardict-html-parsedata-plugin/stardict_html_parsedata.cpp 2.110 +--- stardict-3.0.1.orig/stardict-plugins/stardict-html-parsedata-plugin/stardict_html_parsedata.cpp 2007-09-13 08:51:55.000000000 +0100 2.111 ++++ stardict-3.0.1/stardict-plugins/stardict-html-parsedata-plugin/stardict_html_parsedata.cpp 2008-04-11 17:59:50.000000000 +0100 2.112 +@@ -1,4 +1,6 @@ 2.113 + #include "stardict_html_parsedata.h" 2.114 ++#include <cstring> 2.115 ++#include <cstdlib> 2.116 + #include <glib/gi18n.h> 2.117 + 2.118 + #ifdef _WIN32 2.119 + 2.120 +diff -Naur stardict-3.0.1.orig/stardict-plugins/stardict-spell-plugin/stardict_spell.cpp stardict-3.0.1/stardict-plugins/stardict-spell-plugin/stardict_spell.cpp 2.121 +--- stardict-3.0.1.orig/stardict-plugins/stardict-spell-plugin/stardict_spell.cpp 2007-09-19 09:29:21.000000000 +0100 2.122 ++++ stardict-3.0.1/stardict-plugins/stardict-spell-plugin/stardict_spell.cpp 2008-04-11 18:02:38.000000000 +0100 2.123 +@@ -1,4 +1,5 @@ 2.124 + #include "stardict_spell.h" 2.125 ++#include <cstring> 2.126 + #include <glib.h> 2.127 + #include <glib/gi18n.h> 2.128 + #include <enchant.h> 2.129 + 2.130 +diff -Naur stardict-3.0.1.orig/stardict-plugins/stardict-wordnet-plugin/court_widget.cpp stardict-3.0.1/stardict-plugins/stardict-wordnet-plugin/court_widget.cpp 2.131 +--- stardict-3.0.1.orig/stardict-plugins/stardict-wordnet-plugin/court_widget.cpp 2007-10-18 02:36:22.000000000 +0100 2.132 ++++ stardict-3.0.1/stardict-plugins/stardict-wordnet-plugin/court_widget.cpp 2008-04-11 18:01:10.000000000 +0100 2.133 +@@ -1,4 +1,5 @@ 2.134 + #include "court_widget.h" 2.135 ++#include <cstring> 2.136 + #include <math.h> 2.137 + #include <list> 2.138 + 2.139 +diff -Naur stardict-3.0.1.orig/stardict-plugins/stardict-wordnet-plugin/stardict_wordnet.cpp stardict-3.0.1/stardict-plugins/stardict-wordnet-plugin/stardict_wordnet.cpp 2.140 +--- stardict-3.0.1.orig/stardict-plugins/stardict-wordnet-plugin/stardict_wordnet.cpp 2007-10-15 04:32:04.000000000 +0100 2.141 ++++ stardict-3.0.1/stardict-plugins/stardict-wordnet-plugin/stardict_wordnet.cpp 2008-04-11 18:00:35.000000000 +0100 2.142 +@@ -1,5 +1,6 @@ 2.143 + #include "stardict_wordnet.h" 2.144 + #include "court_widget.h" 2.145 ++#include <cstring> 2.146 + #include <glib/gi18n.h> 2.147 + 2.148 + #ifdef _WIN32 2.149 + 2.150 +diff -Naur stardict-3.0.1.orig/stardict-plugins/stardict-xdxf-parsedata-plugin/stardict_xdxf_parsedata.cpp stardict-3.0.1/stardict-plugins/stardict-xdxf-parsedata-plugin/stardict_xdxf_parsedata.cpp 2.151 +--- stardict-3.0.1.orig/stardict-plugins/stardict-xdxf-parsedata-plugin/stardict_xdxf_parsedata.cpp 2007-08-31 07:41:54.000000000 +0100 2.152 ++++ stardict-3.0.1/stardict-plugins/stardict-xdxf-parsedata-plugin/stardict_xdxf_parsedata.cpp 2008-04-11 18:00:12.000000000 +0100 2.153 +@@ -1,4 +1,5 @@ 2.154 + #include "stardict_xdxf_parsedata.h" 2.155 ++#include <cstring> 2.156 + #include <glib/gi18n.h> 2.157 + 2.158 + #ifdef _WIN32 2.159 +diff -Naur stardict-3.0.1.orig/tests/t_config_file.cpp stardict-3.0.1/tests/t_config_file.cpp 2.160 +--- stardict-3.0.1.orig/tests/t_config_file.cpp 2007-07-10 08:16:04.000000000 +0100 2.161 ++++ stardict-3.0.1/tests/t_config_file.cpp 2008-04-11 18:04:13.000000000 +0100 2.162 +@@ -8,6 +8,7 @@ 2.163 + #include <cstring> 2.164 + #include <iterator> 2.165 + #include <iostream> 2.166 ++#include <memory> 2.167 + #include <gtk/gtk.h> 2.168 + 2.169 + #include "config_file.hpp" 2.170 +diff -Naur stardict-3.0.1.orig/tests/t_xml.cpp stardict-3.0.1/tests/t_xml.cpp 2.171 +--- stardict-3.0.1.orig/tests/t_xml.cpp 2007-07-10 08:16:04.000000000 +0100 2.172 ++++ stardict-3.0.1/tests/t_xml.cpp 2008-04-11 18:04:58.000000000 +0100 2.173 +@@ -5,6 +5,7 @@ 2.174 + #include <glib.h> 2.175 + #include <cstdlib> 2.176 + #include <string> 2.177 ++#include <cstring> 2.178 + 2.179 + 2.180 + static void xml_decode(const char *str, std::string& decoded)
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/stardict/stuff/stardict_gcc43.patch Thu Nov 25 22:38:14 2010 +0000 3.3 @@ -0,0 +1,357 @@ 3.4 +--- stardict-3.0.1/src/Makefile.am.gcc43 2007-07-10 16:16:04.000000000 +0900 3.5 ++++ stardict-3.0.1/src/Makefile.am 2008-02-26 19:35:12.000000000 +0900 3.6 +@@ -14,6 +14,8 @@ 3.7 + 3.8 + bin_PROGRAMS = stardict 3.9 + 3.10 ++DEFAULT_INCLUDES = -I$(top_builddir) 3.11 ++ 3.12 + INCLUDES = \ 3.13 + $(STARDICT_CFLAGS) \ 3.14 + $(LOCAL_SIGCPP_INCLUDE) \ 3.15 + 3.16 +--- stardict-3.0.1/src/config_file.hpp.gcc43 2007-07-10 16:16:04.000000000 +0900 3.17 ++++ stardict-3.0.1/src/config_file.hpp 2008-02-26 19:35:00.000000000 +0900 3.18 +@@ -5,7 +5,7 @@ 3.19 + #include <list> 3.20 + #include <string> 3.21 + 3.22 +-#include "sigc++/sigc++.h" 3.23 ++#include <sigc++/sigc++.h> 3.24 + 3.25 + class config_file; 3.26 + 3.27 +--- stardict-3.0.1/src/gconf_file.cpp.gcc43 2007-07-10 16:16:04.000000000 +0900 3.28 ++++ stardict-3.0.1/src/gconf_file.cpp 2008-02-26 19:37:18.000000000 +0900 3.29 +@@ -22,6 +22,7 @@ 3.30 + # include "config.h" 3.31 + #endif 3.32 + 3.33 ++#include <memory> 3.34 + #include <glib/gi18n.h> 3.35 + 3.36 + #include "gconf_file.hpp" 3.37 + 3.38 +--- stardict-3.0.1/src/gtk_iskeyspressed.cpp.gcc43 2007-07-10 16:16:04.000000000 +0900 3.39 ++++ stardict-3.0.1/src/gtk_iskeyspressed.cpp 2008-02-26 19:37:35.000000000 +0900 3.40 +@@ -97,7 +97,7 @@ 3.41 + GDK_BUTTON5_MASK = 1 << 12, 3.42 + */ 3.43 + 3.44 +- mask = GdkModifierType(guint(mask) & (1<<13)-1); 3.45 ++ mask = GdkModifierType(guint(mask) & ((1<<13)-1)); 3.46 + 3.47 + mask = 3.48 + GdkModifierType(guint(mask) & ~(GDK_LOCK_MASK | GDK_BUTTON1_MASK | GDK_BUTTON2_MASK | 3.49 + 3.50 +--- stardict-3.0.1/src/inifile.cpp.gcc43 2007-08-01 18:43:00.000000000 +0900 3.51 ++++ stardict-3.0.1/src/inifile.cpp 2008-02-26 19:37:51.000000000 +0900 3.52 +@@ -28,6 +28,7 @@ 3.53 + #include <cstdio> 3.54 + #include <glib/gi18n.h> 3.55 + #include <glib/gstdio.h> 3.56 ++#include <stdlib.h> 3.57 + 3.58 + #include "utils.h" 3.59 + 3.60 +--- stardict-3.0.1/src/lib/common.cpp.gcc43 2007-09-25 11:27:24.000000000 +0900 3.61 ++++ stardict-3.0.1/src/lib/common.cpp 2008-02-26 19:34:01.000000000 +0900 3.62 +@@ -24,6 +24,8 @@ 3.63 + # include "config.h" 3.64 + #endif 3.65 + 3.66 ++#include <cstring> 3.67 ++#include <stdlib.h> 3.68 + #include "common.hpp" 3.69 + 3.70 + static void parse_description(const char *p, long len, std::string &description) 3.71 + 3.72 +--- stardict-3.0.1/src/lib/data.cpp.gcc43 2007-09-21 10:09:52.000000000 +0900 3.73 ++++ stardict-3.0.1/src/lib/data.cpp 2008-02-26 19:33:38.000000000 +0900 3.74 +@@ -26,6 +26,8 @@ 3.75 + 3.76 + #include "data.hpp" 3.77 + #include "getuint32.h" 3.78 ++#include <cstring> 3.79 ++#include <cstdio> 3.80 + 3.81 + 3.82 + DictBase::DictBase() 3.83 + 3.84 +--- stardict-3.0.1/src/lib/http_client.cpp.gcc43 2007-09-06 17:29:30.000000000 +0900 3.85 ++++ stardict-3.0.1/src/lib/http_client.cpp 2008-02-26 19:34:27.000000000 +0900 3.86 +@@ -4,6 +4,7 @@ 3.87 + 3.88 + #include "http_client.h" 3.89 + #include "sockets.hpp" 3.90 ++#include <cstring> 3.91 + 3.92 + sigc::signal<void, HttpClient *, const char *> HttpClient::on_error_; 3.93 + sigc::signal<void, HttpClient *> HttpClient::on_response_; 3.94 + 3.95 +--- stardict-3.0.1/src/lib/pluginmanager.cpp.gcc43 2007-10-10 12:26:45.000000000 +0900 3.96 ++++ stardict-3.0.1/src/lib/pluginmanager.cpp 2008-02-26 19:34:36.000000000 +0900 3.97 +@@ -1,6 +1,7 @@ 3.98 + #include "pluginmanager.h" 3.99 + #include "file.hpp" 3.100 + #include <string> 3.101 ++#include <cstring> 3.102 + 3.103 + StarDictPluginBaseObject::StarDictPluginBaseObject(const char *filename, GModule *module_, plugin_configure_func_t configure_func_): 3.104 + plugin_filename(filename), module(module_), configure_func(configure_func_) 3.105 + 3.106 +--- stardict-3.0.1/src/lib/stardict_client.cpp.gcc43 2007-10-31 17:32:11.000000000 +0900 3.107 ++++ stardict-3.0.1/src/lib/stardict_client.cpp 2008-02-26 19:34:16.000000000 +0900 3.108 +@@ -25,6 +25,9 @@ 3.109 + #include <glib.h> 3.110 + #include <glib/gi18n.h> 3.111 + 3.112 ++#include <cstring> 3.113 ++#include <stdlib.h> 3.114 ++#include <cstdio> 3.115 + #include "sockets.hpp" 3.116 + #include "md5.h" 3.117 + #include "getuint32.h" 3.118 + 3.119 +--- stardict-3.0.1/src/lib/stddict.cpp.gcc43 2007-10-30 18:06:07.000000000 +0900 3.120 ++++ stardict-3.0.1/src/lib/stddict.cpp 2008-02-26 19:33:46.000000000 +0900 3.121 +@@ -28,6 +28,7 @@ 3.122 + # include "config.h" 3.123 + #endif 3.124 + 3.125 ++#include <cstring> 3.126 + #include <glib/gi18n.h> 3.127 + #include <glib/gstdio.h> 3.128 + 3.129 +--- stardict-3.0.1/src/lib/treedict.cpp.gcc43 2007-09-21 10:09:52.000000000 +0900 3.130 ++++ stardict-3.0.1/src/lib/treedict.cpp 2008-02-26 19:33:52.000000000 +0900 3.131 +@@ -25,6 +25,7 @@ 3.132 + # include "config.h" 3.133 + #endif 3.134 + 3.135 ++#include <cstring> 3.136 + #include "file.hpp" 3.137 + #include "getuint32.h" 3.138 + 3.139 +--- stardict-3.0.1/src/pangoview.cpp.gcc43 2007-09-25 16:11:48.000000000 +0900 3.140 ++++ stardict-3.0.1/src/pangoview.cpp 2008-02-26 19:37:02.000000000 +0900 3.141 +@@ -22,6 +22,7 @@ 3.142 + # include "config.h" 3.143 + #endif 3.144 + 3.145 ++#include <cstring> 3.146 + #include "gtktextviewpango.h" 3.147 + #include "utils.h" 3.148 + #include "skin.h"//for SkinCursor definition 3.149 + 3.150 +--- stardict-3.0.1/src/utils.cpp.gcc43 2007-10-22 11:25:02.000000000 +0900 3.151 ++++ stardict-3.0.1/src/utils.cpp 2008-02-26 19:36:01.000000000 +0900 3.152 +@@ -22,6 +22,7 @@ 3.153 + # include "config.h" 3.154 + #endif 3.155 + 3.156 ++#include <cstring> 3.157 + #include <glib.h> 3.158 + #include <glib/gi18n.h> 3.159 + #include <cstdlib> 3.160 + 3.161 +--- stardict-3.0.1/src/x11_iskeyspressed.hpp.gcc43 2007-07-10 16:16:04.000000000 +0900 3.162 ++++ stardict-3.0.1/src/x11_iskeyspressed.hpp 2008-02-27 16:16:17.000000000 +0900 3.163 +@@ -5,6 +5,8 @@ 3.164 + #include <X11/keysym.h> 3.165 + #include <gtk/gtk.h> 3.166 + 3.167 ++#include <memory> 3.168 ++ 3.169 + #include "iskeyspressed.hpp" 3.170 + 3.171 + typedef enum { SYM, CODE, BUTTON } KeyType_t; 3.172 + 3.173 +--- stardict-3.0.1/stardict-plugins/stardict-advertisement-plugin/advertisement.cpp.gcc43 2007-09-21 10:09:53.000000000 +0900 3.174 ++++ stardict-3.0.1/stardict-plugins/stardict-advertisement-plugin/advertisement.cpp 2008-02-26 19:39:34.000000000 +0900 3.175 +@@ -2,6 +2,7 @@ 3.176 + #include <glib.h> 3.177 + #include <glib/gi18n.h> 3.178 + #include <glib/gstdio.h> 3.179 ++#include <cstring> 3.180 + #include <string> 3.181 + #include <map> 3.182 + #include <list> 3.183 + 3.184 +--- stardict-3.0.1/stardict-plugins/stardict-dictdotcn-plugin/stardict_dictdotcn.cpp.gcc43 2007-10-10 18:28:29.000000000 +0900 3.185 ++++ stardict-3.0.1/stardict-plugins/stardict-dictdotcn-plugin/stardict_dictdotcn.cpp 2008-02-26 19:38:56.000000000 +0900 3.186 +@@ -1,5 +1,6 @@ 3.187 + #include "stardict_dictdotcn.h" 3.188 + #include <glib/gi18n.h> 3.189 ++#include <cstring> 3.190 + #include <string> 3.191 + #include <list> 3.192 + 3.193 +--- stardict-3.0.1/stardict-plugins/stardict-espeak-tts-plugin/stardict_espeak.cpp.gcc43 2007-09-19 17:27:18.000000000 +0900 3.194 ++++ stardict-3.0.1/stardict-plugins/stardict-espeak-tts-plugin/stardict_espeak.cpp 2008-02-26 19:45:43.000000000 +0900 3.195 +@@ -1,6 +1,7 @@ 3.196 + #include "stardict_espeak.h" 3.197 + #include <espeak/speak_lib.h> 3.198 + #include <glib/gi18n.h> 3.199 ++#include <cstring> 3.200 + 3.201 + static const StarDictPluginSystemInfo *plugin_info = NULL; 3.202 + static std::string voice_engine; 3.203 + 3.204 +--- stardict-3.0.1/stardict-plugins/stardict-gucharmap-plugin/stardict_gucharmap.cpp.gcc43 2007-08-31 16:10:41.000000000 +0900 3.205 ++++ stardict-3.0.1/stardict-plugins/stardict-gucharmap-plugin/stardict_gucharmap.cpp 2008-02-26 19:45:27.000000000 +0900 3.206 +@@ -1,6 +1,8 @@ 3.207 + #include "stardict_gucharmap.h" 3.208 + #include <glib/gi18n.h> 3.209 + #include <gucharmap/gucharmap.h> 3.210 ++#include <stdlib.h> 3.211 ++#include <cstring> 3.212 + #include <string> 3.213 + 3.214 + static char *build_dictdata(char type, const char *definition) 3.215 + 3.216 +--- stardict-3.0.1/stardict-plugins/stardict-html-parsedata-plugin/stardict_html_parsedata.cpp.gcc43 2007-09-13 16:51:55.000000000 +0900 3.217 ++++ stardict-3.0.1/stardict-plugins/stardict-html-parsedata-plugin/stardict_html_parsedata.cpp 2008-02-26 19:41:11.000000000 +0900 3.218 +@@ -1,5 +1,7 @@ 3.219 + #include "stardict_html_parsedata.h" 3.220 + #include <glib/gi18n.h> 3.221 ++#include <cstring> 3.222 ++#include <stdlib.h> 3.223 + 3.224 + #ifdef _WIN32 3.225 + #include <windows.h> 3.226 + 3.227 +--- stardict-3.0.1/stardict-plugins/stardict-man-plugin/stardict_man.cpp.gcc43 2007-09-19 17:30:54.000000000 +0900 3.228 ++++ stardict-3.0.1/stardict-plugins/stardict-man-plugin/stardict_man.cpp 2008-02-26 19:40:22.000000000 +0900 3.229 +@@ -1,5 +1,6 @@ 3.230 + #include "stardict_man.h" 3.231 + #include <glib/gi18n.h> 3.232 ++#include <cstring> 3.233 + #include <string> 3.234 + 3.235 + static const StarDictPluginSystemInfo *plugin_info = NULL; 3.236 + 3.237 +--- stardict-3.0.1/stardict-plugins/stardict-powerword-parsedata-plugin/stardict_powerword_parsedata.cpp.gcc43 2007-10-25 17:16:37.000000000 +0900 3.238 ++++ stardict-3.0.1/stardict-plugins/stardict-powerword-parsedata-plugin/stardict_powerword_parsedata.cpp 2008-02-26 19:44:06.000000000 +0900 3.239 +@@ -1,4 +1,5 @@ 3.240 + #include "stardict_powerword_parsedata.h" 3.241 ++#include <cstring> 3.242 + #include <glib/gi18n.h> 3.243 + 3.244 + #ifdef _WIN32 3.245 + 3.246 +--- stardict-3.0.1/stardict-plugins/stardict-qqwry-plugin/stardict_qqwry.cpp.gcc43 2007-11-02 17:41:26.000000000 +0900 3.247 ++++ stardict-3.0.1/stardict-plugins/stardict-qqwry-plugin/stardict_qqwry.cpp 2008-02-26 19:45:57.000000000 +0900 3.248 +@@ -1,6 +1,8 @@ 3.249 + #include "stardict_qqwry.h" 3.250 + #include <glib/gi18n.h> 3.251 + #include <glib/gstdio.h> 3.252 ++#include <cstring> 3.253 ++#include <stdlib.h> 3.254 + #include <string> 3.255 + 3.256 + #ifdef _WIN32 3.257 + 3.258 +--- stardict-3.0.1/stardict-plugins/stardict-spell-plugin/stardict_spell.cpp.gcc43 2007-09-19 17:29:21.000000000 +0900 3.259 ++++ stardict-3.0.1/stardict-plugins/stardict-spell-plugin/stardict_spell.cpp 2008-02-26 19:45:13.000000000 +0900 3.260 +@@ -3,6 +3,7 @@ 3.261 + #include <glib/gi18n.h> 3.262 + #include <enchant.h> 3.263 + #include <pango/pango.h> 3.264 ++#include <cstring> 3.265 + #include <string> 3.266 + #include <vector> 3.267 + 3.268 +--- stardict-3.0.1/stardict-plugins/stardict-update-info-plugin/stardict_update_info.cpp.gcc43 2007-09-19 17:34:36.000000000 +0900 3.269 ++++ stardict-3.0.1/stardict-plugins/stardict-update-info-plugin/stardict_update_info.cpp 2008-02-26 19:40:46.000000000 +0900 3.270 +@@ -1,5 +1,7 @@ 3.271 + #include "stardict_update_info.h" 3.272 + #include <glib/gi18n.h> 3.273 ++#include <cstring> 3.274 ++#include <stdlib.h> 3.275 + 3.276 + #ifdef _WIN32 3.277 + #include <windows.h> 3.278 + 3.279 +--- stardict-3.0.1/stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki2xml.cpp.gcc43 2007-07-10 16:16:15.000000000 +0900 3.280 ++++ stardict-3.0.1/stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki2xml.cpp 2008-02-26 19:45:00.000000000 +0900 3.281 +@@ -1,5 +1,6 @@ 3.282 + #include "stardict_wiki2xml.h" 3.283 + #include "WIKI2XML.h" 3.284 ++#include <cstring> 3.285 + #include <glib.h> 3.286 + 3.287 + std::string wiki2xml(std::string &str) 3.288 + 3.289 +--- stardict-3.0.1/stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki_parsedata.cpp.gcc43 2007-08-31 15:41:21.000000000 +0900 3.290 ++++ stardict-3.0.1/stardict-plugins/stardict-wiki-parsedata-plugin/stardict_wiki_parsedata.cpp 2008-02-26 19:44:40.000000000 +0900 3.291 +@@ -1,5 +1,6 @@ 3.292 + #include "stardict_wiki_parsedata.h" 3.293 + #include "stardict_wiki2xml.h" 3.294 ++#include <cstring> 3.295 + #include <glib/gi18n.h> 3.296 + 3.297 + #ifdef _WIN32 3.298 + 3.299 +--- stardict-3.0.1/stardict-plugins/stardict-wordnet-plugin/court_widget.cpp.gcc43 2007-10-18 10:36:22.000000000 +0900 3.300 ++++ stardict-3.0.1/stardict-plugins/stardict-wordnet-plugin/court_widget.cpp 2008-02-26 19:42:25.000000000 +0900 3.301 +@@ -1,6 +1,7 @@ 3.302 + #include "court_widget.h" 3.303 + #include <math.h> 3.304 + #include <list> 3.305 ++#include <cstring> 3.306 + 3.307 + 3.308 + wnobj::wnobj(partic_t & p, unsigned int t) : _p(p), _t(t), highlight(false) 3.309 + 3.310 +--- stardict-3.0.1/stardict-plugins/stardict-wordnet-plugin/stardict_wordnet.cpp.gcc43 2007-10-15 12:32:04.000000000 +0900 3.311 ++++ stardict-3.0.1/stardict-plugins/stardict-wordnet-plugin/stardict_wordnet.cpp 2008-02-26 19:42:05.000000000 +0900 3.312 +@@ -1,6 +1,7 @@ 3.313 + #include "stardict_wordnet.h" 3.314 + #include "court_widget.h" 3.315 + #include <glib/gi18n.h> 3.316 ++#include <cstring> 3.317 + 3.318 + #ifdef _WIN32 3.319 + #include <windows.h> 3.320 + 3.321 +--- stardict-3.0.1/stardict-plugins/stardict-wordnet-plugin/stardict_wordnet_parsedata.cpp.gcc43 2007-10-10 18:39:10.000000000 +0900 3.322 ++++ stardict-3.0.1/stardict-plugins/stardict-wordnet-plugin/stardict_wordnet_parsedata.cpp 2008-02-26 19:43:21.000000000 +0900 3.323 +@@ -1,4 +1,5 @@ 3.324 + #include "stardict_wordnet_parsedata.h" 3.325 ++#include <cstring> 3.326 + #include <glib/gi18n.h> 3.327 + 3.328 + #ifdef _WIN32 3.329 + 3.330 +--- stardict-3.0.1/stardict-plugins/stardict-xdxf-parsedata-plugin/stardict_xdxf_parsedata.cpp.gcc43 2007-08-31 15:41:54.000000000 +0900 3.331 ++++ stardict-3.0.1/stardict-plugins/stardict-xdxf-parsedata-plugin/stardict_xdxf_parsedata.cpp 2008-02-26 19:41:36.000000000 +0900 3.332 +@@ -1,5 +1,6 @@ 3.333 + #include "stardict_xdxf_parsedata.h" 3.334 + #include <glib/gi18n.h> 3.335 ++#include <cstring> 3.336 + 3.337 + #ifdef _WIN32 3.338 + #include <windows.h> 3.339 + 3.340 +--- stardict-3.0.1/tests/t_config_file.cpp.gcc43 2007-07-10 16:16:04.000000000 +0900 3.341 ++++ stardict-3.0.1/tests/t_config_file.cpp 2008-02-26 19:38:14.000000000 +0900 3.342 +@@ -2,6 +2,7 @@ 3.343 + # include "config.h" 3.344 + #endif 3.345 + 3.346 ++#include <memory> 3.347 + #include <cerrno> 3.348 + #include <cstdio> 3.349 + #include <cstdlib> 3.350 + 3.351 +--- stardict-3.0.1/tests/t_xml.cpp.gcc43 2007-07-10 16:16:04.000000000 +0900 3.352 ++++ stardict-3.0.1/tests/t_xml.cpp 2008-02-26 19:38:04.000000000 +0900 3.353 +@@ -3,6 +3,7 @@ 3.354 + #endif 3.355 + 3.356 + #include <glib.h> 3.357 ++#include <cstring> 3.358 + #include <cstdlib> 3.359 + #include <string> 3.360 +