作図ソフト dia の改良版
修订版 | 38fb222f1d6213f38cfc139fee5c39fd6510a9df (tree) |
---|---|
时间 | 2007-03-19 02:41:19 |
作者 | Hans Breuer <hans@breu...> |
Commiter | Hans Breuer |
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
@@ -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 | + | |
1 | 5 | 2007-03-17 Hans Breuer <hans@breuer.org> |
2 | 6 | |
3 | 7 | * app/app_procs.c app/autosave.c app/commands.c app/diaconv.c |
@@ -497,10 +497,17 @@ dump_dependencies(void) | ||
497 | 497 | } |
498 | 498 | #endif |
499 | 499 | { |
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 | + */ | |
501 | 505 | xmlInitParser(); |
502 | 506 | if (xmlGetGlobalState()) |
503 | 507 | libxml_rt_version = xmlGetGlobalState()->xmlParserVersion; |
508 | +#else | |
509 | + libxml_rt_version = xmlParserVersion; | |
510 | +#endif | |
504 | 511 | if (atoi(libxml_rt_version)) |
505 | 512 | g_print ("libxml : %d.%d.%d (%s)\n", |
506 | 513 | atoi(libxml_rt_version) / 10000, atoi(libxml_rt_version) / 100 % 100, atoi(libxml_rt_version) % 100, |
@@ -1185,7 +1185,7 @@ export_data(DiagramData *data, const gchar *filename, | ||
1185 | 1185 | |
1186 | 1186 | if (file == NULL) { |
1187 | 1187 | message_error(_("Couldn't open: '%s' for writing.\n"), |
1188 | - dia_message_filename(filename), strerror(errno)); | |
1188 | + dia_message_filename(filename)); | |
1189 | 1189 | return; |
1190 | 1190 | } |
1191 | 1191 |