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
@@ -20,7 +20,7 @@ current_thread_id :: proc() -> i32 {
}
semaphore_init :: proc(s: ^Semaphore) {
s._handle = win32.create_semaphore_a(nil, 0, 1<<31-1, nil);
s._handle = win32.create_semaphore_w(nil, 0, 1<<31-1, nil);
}
semaphore_destroy :: proc(s: ^Semaphore) {
@@ -63,7 +63,7 @@ mutex_unlock :: proc(m: ^Mutex) {
condition_init :: proc(using c: ^Condition) {
event = win32.create_event_a(nil, false, false, nil);
event = win32.create_event_w(nil, false, false, nil);
assert(event != nil);
}