mirror of https://github.com/mgba-emu/mgba.git
PSP2: Update for new toolchain
This commit is contained in:
parent
0fdb436d3e
commit
8efe9c70c2
|
@ -16,7 +16,6 @@
|
|||
#include <psp2/display.h>
|
||||
#include <psp2/kernel/processmgr.h>
|
||||
#include <psp2/kernel/threadmgr.h>
|
||||
#include <psp2/moduleinfo.h>
|
||||
#include <psp2/power.h>
|
||||
#include <psp2/sysmodule.h>
|
||||
#include <psp2/touch.h>
|
||||
|
|
|
@ -42,6 +42,11 @@ typedef intptr_t ssize_t;
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef PSP2
|
||||
// For PATH_MAX on modern toolchains
|
||||
#include <sys/syslimits.h>
|
||||
#endif
|
||||
|
||||
#ifndef SSIZE_MAX
|
||||
#define SSIZE_MAX ((ssize_t) (SIZE_MAX >> 1))
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue