Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use per-thread libxml2 global state on Windows #13486

Merged
merged 1 commit into from
May 23, 2023

Conversation

HertzDevil
Copy link
Contributor

On Windows we build libxml2 with thread support, so the two global variables we declare in LibXML are C macros rather than exports. When using libxml2 as a DLL, we must recreate those macros instead of binding to xmlIndentTreeOutput and xmlTreeIndentString directly.

Those functions have been around in libxml2 for a long time, so this PR is probably applicable to more platforms than just Windows.

@HertzDevil HertzDevil added kind:refactor platform:windows Windows support based on the MSVC toolchain / Win32 API topic:stdlib:serialization labels May 20, 2023
@straight-shoota straight-shoota added this to the 1.9.0 milestone May 22, 2023
@straight-shoota straight-shoota merged commit da4b129 into crystal-lang:master May 23, 2023
@HertzDevil HertzDevil deleted the refactor/xml-global branch May 23, 2023 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:refactor platform:windows Windows support based on the MSVC toolchain / Win32 API topic:stdlib:serialization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants