Correct debug lib
Dimitri (_) dimitri.tavan@etu.univ-poitiers.fr
Wed, 04 Apr 2018 18:30:02 +0200
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
opt/libgba/mgba.c
→
opt/libgba/mgba.c
@@ -32,7 +32,7 @@ #define REG_DEBUG_ENABLE (vu16*) 0x4FFF780
#define REG_DEBUG_FLAGS (vu16*) 0x4FFF700 #define REG_DEBUG_STRING (char*) 0x4FFF600 -ssize_t mgba_stdout_write(struct _reent* r __attribute__((unused)), int fd __attribute__((unused)), const char* ptr, size_t len) { +ssize_t mgba_stdout_write(struct _reent* r __attribute__((unused)), void* fd __attribute__((unused)), const char* ptr, size_t len) { if (len > 0x100) { len = 0x100; }@@ -41,7 +41,7 @@ *REG_DEBUG_FLAGS = MGBA_LOG_INFO | 0x100;
return len; } -ssize_t mgba_stderr_write(struct _reent* r __attribute__((unused)), int fd __attribute__((unused)), const char* ptr, size_t len) { +ssize_t mgba_stderr_write(struct _reent* r __attribute__((unused)), void* fd __attribute__((unused)), const char* ptr, size_t len) { if (len > 0x100) { len = 0x100; }