Fix building with ICU 68.
The following Merge Request (MR) has been forwarded from GitHub in order to prevent the GNOME Project from losing contributions coming from un-official channels. And for contributors to not see their valuable contributions not being accounted for.
Relevant information:
Github handle: triplef
MR URL: https://github.com/GNOME/libxml2/pull/24
Patch URL: https://github.com/GNOME/libxml2/pull/24.patch
Body of the MR:
ICU 68 no longer defines the TRUE
macro, as outlined in their updated Coding Guidelines.
This causes building libxml2 with ICU 68 to fail with the following error:
encoding.c:1961:31: error: use of undeclared identifier ‘TRUE’
TRUE);
^
Given that xmlUconvWrapper()
defines the parameter as int flush
, using 1
instead of TRUE
seems like the best solution.