Add utf8_to_ucs2 for package win32 so that the wide procedures can used by default

This commit is contained in:
gingerBill
2018-08-30 10:59:46 +01:00
parent 6c18864291
commit 0858ae2024
4 changed files with 73 additions and 16 deletions
+2 -2
View File
@@ -67,8 +67,8 @@ read_ptr :: proc(fd: Handle, data: rawptr, len: int) -> (int, Errno) {
heap_allocator_proc :: proc(allocator_data: rawptr, mode: mem.Allocator_Mode,
size, alignment: int,
old_memory: rawptr, old_size: int, flags: u64 = 0, loc := #caller_location) -> rawptr {
size, alignment: int,
old_memory: rawptr, old_size: int, flags: u64 = 0, loc := #caller_location) -> rawptr {
using mem.Allocator_Mode;
switch mode {