site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=sasl; bh= FA8tAYI0fQkjtzl2ov8UtKrzYLE=; b=g+sg8hmEmjPK9RfRHuazb188XYi3qVSQ tPQYMEawjVFqoe9KqEDz8lmpONmK7VxGGLAiWOFgs9QLS4U1JnztFiJ5uOG0pPI9 /PC7P8uyTYRbT+g5iXdEvdMbgSIcAal31lui8D4kKuZWdismhdrGzHUUYrO2LeDh kvUYwqESOuc= Domainkey-signature: a=rsa-sha1; c=nofws; d=pobox.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; q=dns; s= sasl; b=kucO9Wn6rUpRZsrrNLqRyoQMxs1QBq+mINS8mHNcrl3mmnt1lB/7LVkQ /RRxL2FXFE782UhD3J1hmKgqrw5FiAyCPQ/wdatQWjcEx0YhznpUt0xq+dODIx4q 4ZGWItfigWlbgjPQc7jrk2wGRIuHRjp94sLUoFAsE3RxX0paZic= On Mar 1, 2010, at 4:43 PM, Wade Tregaskis wrote:
The document at <http://xmlsoft.org/threads.html> says that libxml2 must be compiled —with-threads as a necessary precondition for using it in a thread-safe manner.
Can anyone confirm whether the library was built that way on 10.6.x? 10.5.x?
You can look for yourself in /usr/include/libxml2/libxml/xmlversion.h; those features which were compiled in around surrounded by "#if 1" pragmas, those that weren't, "#if 0". You can use the existence of the appropriate defines to pragmatically adapt your code.
Thanks for the pointer.
To address threading specifically, yes, libxml2 is compiled --with-threads.
Great. - Jim _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com