Add a few babl libc wrappers
authorLuca Bacci <luca.bacci982@gmail.com>
Thu, 29 Dec 2022 14:14:38 +0000 (15:14 +0100)
committerØyvind "pippin" Kolås <pippin@gimp.org>
Tue, 3 Jan 2023 10:33:37 +0000 (10:33 +0000)
commitbb06d6cf28e46c623e701fd65e88feaaa3fd2fa1
tree758c844464eb012a84c074f2b491480e1379e29a
parent4d3c12980f46a9511853c638ea5dd93836a6e965
Add a few babl libc wrappers

Add the following wrappers:

* babl_fopen
* babl_rename
* babl_remove
* babl_mkdir
* babl_stat

And the following util:

* babl_dir_list

On Windows, the wrappers internally convert from UTF8 to UTF16 and
call the wide char routines, that way the string need not be limited
to the ANSI character set. Outside of Windows the wrappers are no-op.
babl_dir_list is implemented using opendir / readdir on non-Windows
and _wfindfirst64 / _wfindnext64 on Windows.
babl/babl-util.c
babl/babl-util.h