mirror of
https://github.com/pine64/blisp.git
synced 2025-01-03 20:30:26 +00:00
Fix Windows support
This commit is contained in:
parent
279f2433ea
commit
a6b9b4102b
@ -11,7 +11,7 @@ static int64_t blisp_easy_transport_read(struct blisp_easy_transport* transport,
|
|||||||
uint32_t size) {
|
uint32_t size) {
|
||||||
if (transport->type == 0) {
|
if (transport->type == 0) {
|
||||||
// TODO: Implement reading more than available
|
// 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;
|
transport->data.memory.current_position += size;
|
||||||
return size;
|
return size;
|
||||||
} else {
|
} else {
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
#ifndef BLISP_UTIL_H
|
#ifndef BLISP_UTIL_H
|
||||||
#define BLISP_UTIL_H
|
#define BLISP_UTIL_H
|
||||||
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
Loading…
Reference in New Issue
Block a user