Windows compat fixes.

This commit is contained in:
Ben Vanik
2013-02-06 10:04:34 -08:00
parent 2521d64615
commit 7435a327f7
12 changed files with 52 additions and 13 deletions

View File

@@ -124,7 +124,7 @@ void xe_mmap_release(xe_mmap_ref mmap) {
}
uint8_t* xe_mmap_get_addr(xe_mmap_ref mmap) {
return mmap->addr;
return reinterpret_cast<uint8_t*>(mmap->addr);
}
size_t xe_mmap_get_length(xe_mmap_ref mmap) {

View File

@@ -93,7 +93,7 @@ int xe_thread_start(xe_thread_ref thread) {
thread,
0,
NULL);
if (!handle) {
if (!thread_handle) {
uint32_t last_error = GetLastError();
// TODO(benvanik): translate?
XELOGE(XT("CreateThread failed with %d"), last_error);