作図ソフト dia の改良版
Revision | 8623e875e6aeabed0bb779a4231414f42a7e3563 (tree) |
---|---|
Time | 2007-03-19 16:29:23 |
Author | Hans Breuer <hans@breu...> |
Commiter | Hans Breuer |
avoid stumbling over libxml2 preprocessor tricks for LIBXML_THREAD_ENABLED
2007-03-18 Hans Breuer <hans@breuer.org>
* app/app_procs.c : avoid stumbling over libxml2 preprocessor
tricks for LIBXML_THREAD_ENABLED (not at all platform specific)
svn path=/trunk/; revision=3644
@@ -1,5 +1,10 @@ | ||
1 | 1 | 2007-03-18 Hans Breuer <hans@breuer.org> |
2 | 2 | |
3 | + * app/app_procs.c : avoid stumbling over libxml2 preprocessor | |
4 | + tricks for LIBXML_THREAD_ENABLED (not at all platform specific) | |
5 | + | |
6 | +2007-03-17 Lars Clausen <lars@raeder.dk> | |
7 | + | |
3 | 8 | * NEWS: |
4 | 9 | * RELEASE-PROCESS: |
5 | 10 | * config.h.win32: |
@@ -498,16 +498,18 @@ dump_dependencies(void) | ||
498 | 498 | #endif |
499 | 499 | { |
500 | 500 | gchar* libxml_rt_version = "?"; |
501 | -#ifdef G_OS_WIN32 | |
501 | +#if 0 | |
502 | 502 | /* this is stupid, does not compile on Linux: |
503 | 503 | * app_procs.c:504: error: expected identifier before '(' token |
504 | + * | |
505 | + * In fact libxml2 has different ABI for LIBXML_THREAD_ENABLED, this code only compiles without | |
506 | + * threads enabled, but apparently it does only work when theay are. | |
504 | 507 | */ |
505 | 508 | xmlInitParser(); |
506 | 509 | if (xmlGetGlobalState()) |
507 | 510 | libxml_rt_version = xmlGetGlobalState()->xmlParserVersion; |
508 | -#else | |
509 | - libxml_rt_version = xmlParserVersion; | |
510 | 511 | #endif |
512 | + libxml_rt_version = xmlParserVersion; | |
511 | 513 | if (atoi(libxml_rt_version)) |
512 | 514 | g_print ("libxml : %d.%d.%d (%s)\n", |
513 | 515 | atoi(libxml_rt_version) / 10000, atoi(libxml_rt_version) / 100 % 100, atoi(libxml_rt_version) % 100, |