Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/xml/libxml2.cr
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ require "./save_options"
lib LibXML
alias Int = LibC::Int

fun xmlInitParser

# TODO: check if other platforms also support per-thread globals
{% if flag?(:win32) %}
fun xmlInitParser
fun __xmlIndentTreeOutput : Int*
fun __xmlTreeIndentString : UInt8**
{% else %}
Expand Down Expand Up @@ -324,9 +325,7 @@ lib LibXML
fun xmlValidateNameValue(value : UInt8*) : Int
end

{% if flag?(:win32) %}
LibXML.xmlInitParser
{% end %}
LibXML.xmlInitParser

LibXML.xmlGcMemSetup(
->GC.free,
Expand Down