mirror of
https://github.com/Pecusx/libretro-atari800.git
synced 2026-05-20 22:33:22 +02:00
[VITA] Fix Compilation
This commit is contained in:
+11
-2
@@ -51,6 +51,10 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef VITA
|
||||||
|
#include <psp2/kernel/threadmgr.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "atari.h"
|
#include "atari.h"
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
@@ -477,10 +481,13 @@ double Util_time(void)
|
|||||||
|
|
||||||
void Util_sleep(double s)
|
void Util_sleep(double s)
|
||||||
{
|
{
|
||||||
#ifdef WIIU
|
#if defined(WIIU)
|
||||||
/* no need to sleep on retroarch (we are awake) so bypass it for wiiu */
|
/* no need to sleep on retroarch (we are awake) so bypass it for wiiu */
|
||||||
return;
|
return;
|
||||||
#endif
|
#elif defined(VITA)
|
||||||
|
sceKernelDelayThread(1e6 * s);
|
||||||
|
#else
|
||||||
|
|
||||||
#ifdef SUPPORTS_PLATFORM_SLEEP
|
#ifdef SUPPORTS_PLATFORM_SLEEP
|
||||||
PLATFORM_Sleep(s);
|
PLATFORM_Sleep(s);
|
||||||
#else /* !SUPPORTS_PLATFORM_SLEEP */
|
#else /* !SUPPORTS_PLATFORM_SLEEP */
|
||||||
@@ -517,4 +524,6 @@ return;
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif /* !SUPPORTS_PLATFORM_SLEEP */
|
#endif /* !SUPPORTS_PLATFORM_SLEEP */
|
||||||
|
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -574,3 +574,15 @@
|
|||||||
/* Define to empty if the keyword `volatile' does not work. Warning: valid
|
/* Define to empty if the keyword `volatile' does not work. Warning: valid
|
||||||
code using `volatile' can become incorrect without. Disable with care. */
|
code using `volatile' can become incorrect without. Disable with care. */
|
||||||
/* #undef volatile */
|
/* #undef volatile */
|
||||||
|
|
||||||
|
#ifdef VITA
|
||||||
|
|
||||||
|
#undef HAVE_CHMOD
|
||||||
|
|
||||||
|
#undef HAVE_RMDIR
|
||||||
|
|
||||||
|
#undef HAVE_GETCWD
|
||||||
|
|
||||||
|
#undef HAVE_NANOSLEEP
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user