Fix Windows support

This commit is contained in:
Marek Kraus 2023-01-09 21:38:06 +01:00
parent 279f2433ea
commit a6b9b4102b
2 changed files with 1 additions and 2 deletions

View File

@ -11,7 +11,7 @@ static int64_t blisp_easy_transport_read(struct blisp_easy_transport* transport,
uint32_t size) {
if (transport->type == 0) {
// TODO: Implement reading more than available
memcpy(buffer, transport->data.memory.data_location + transport->data.memory.current_position, size);
memcpy(buffer, (uint8_t*)transport->data.memory.data_location + transport->data.memory.current_position, size);
transport->data.memory.current_position += size;
return size;
} else {

View File

@ -2,7 +2,6 @@
#ifndef BLISP_UTIL_H
#define BLISP_UTIL_H
#include <unistd.h>
#include <stdint.h>
#ifdef __linux__