• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

作図ソフト dia の改良版


Commit MetaInfo

Revision8623e875e6aeabed0bb779a4231414f42a7e3563 (tree)
Time2007-03-19 16:29:23
AuthorHans Breuer <hans@breu...>
CommiterHans Breuer

Log Message

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

Change Summary

Incremental Difference

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
11 2007-03-18 Hans Breuer <hans@breuer.org>
22
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+
38 * NEWS:
49 * RELEASE-PROCESS:
510 * config.h.win32:
--- a/app/app_procs.c
+++ b/app/app_procs.c
@@ -498,16 +498,18 @@ dump_dependencies(void)
498498 #endif
499499 {
500500 gchar* libxml_rt_version = "?";
501-#ifdef G_OS_WIN32
501+#if 0
502502 /* this is stupid, does not compile on Linux:
503503 * 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.
504507 */
505508 xmlInitParser();
506509 if (xmlGetGlobalState())
507510 libxml_rt_version = xmlGetGlobalState()->xmlParserVersion;
508-#else
509- libxml_rt_version = xmlParserVersion;
510511 #endif
512+ libxml_rt_version = xmlParserVersion;
511513 if (atoi(libxml_rt_version))
512514 g_print ("libxml : %d.%d.%d (%s)\n",
513515 atoi(libxml_rt_version) / 10000, atoi(libxml_rt_version) / 100 % 100, atoi(libxml_rt_version) % 100,