• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

作図ソフト dia の改良版


Commit MetaInfo

修订版38fb222f1d6213f38cfc139fee5c39fd6510a9df (tree)
时间2007-03-19 02:41:19
作者Hans Breuer <hans@breu...>
CommiterHans Breuer

Log Message

portability fixes

2007-03-18 Hans Breuer <hans@breuer.org>

* app/app_procs.c plug-ins/wmf/wmf.cpp : portability fixes

svn path=/trunk/; revision=3642

更改概述

差异

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
1+2007-03-18 Hans Breuer <hans@breuer.org>
2+
3+ * app/app_procs.c plug-ins/wmf/wmf.cpp : portability fixes
4+
15 2007-03-17 Hans Breuer <hans@breuer.org>
26
37 * app/app_procs.c app/autosave.c app/commands.c app/diaconv.c
--- a/app/app_procs.c
+++ b/app/app_procs.c
@@ -497,10 +497,17 @@ dump_dependencies(void)
497497 }
498498 #endif
499499 {
500- gchar* libxml_rt_version = "?";
500+ gchar* libxml_rt_version = "?";
501+#ifdef G_OS_WIN32
502+ /* this is stupid, does not compile on Linux:
503+ * app_procs.c:504: error: expected identifier before '(' token
504+ */
501505 xmlInitParser();
502506 if (xmlGetGlobalState())
503507 libxml_rt_version = xmlGetGlobalState()->xmlParserVersion;
508+#else
509+ libxml_rt_version = xmlParserVersion;
510+#endif
504511 if (atoi(libxml_rt_version))
505512 g_print ("libxml : %d.%d.%d (%s)\n",
506513 atoi(libxml_rt_version) / 10000, atoi(libxml_rt_version) / 100 % 100, atoi(libxml_rt_version) % 100,
--- a/plug-ins/wmf/wmf.cpp
+++ b/plug-ins/wmf/wmf.cpp
@@ -1185,7 +1185,7 @@ export_data(DiagramData *data, const gchar *filename,
11851185
11861186 if (file == NULL) {
11871187 message_error(_("Couldn't open: '%s' for writing.\n"),
1188- dia_message_filename(filename), strerror(errno));
1188+ dia_message_filename(filename));
11891189 return;
11901190 }
11911191