From ae132d46e2c33fc1af351334cd5c23475e14071b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Jos=C3=A9=20Garc=C3=ADa=20Garc=C3=ADa?= Date: Tue, 30 Jul 2019 00:24:48 +0200 Subject: [PATCH] [VITA] Fix Compilation --- atari800/src/util.c | 13 +++++++++++-- libretro/config.h | 12 ++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/atari800/src/util.c b/atari800/src/util.c index bebdb9e..2129f26 100644 --- a/atari800/src/util.c +++ b/atari800/src/util.c @@ -51,6 +51,10 @@ # endif #endif +#ifdef VITA +#include +#endif + #include "atari.h" #include "platform.h" #include "util.h" @@ -477,10 +481,13 @@ double Util_time(void) void Util_sleep(double s) { -#ifdef WIIU +#if defined(WIIU) /* no need to sleep on retroarch (we are awake) so bypass it for wiiu */ return; -#endif +#elif defined(VITA) + sceKernelDelayThread(1e6 * s); +#else + #ifdef SUPPORTS_PLATFORM_SLEEP PLATFORM_Sleep(s); #else /* !SUPPORTS_PLATFORM_SLEEP */ @@ -517,4 +524,6 @@ return; #endif } #endif /* !SUPPORTS_PLATFORM_SLEEP */ + +#endif } diff --git a/libretro/config.h b/libretro/config.h index 0ae53c4..b1d8789 100644 --- a/libretro/config.h +++ b/libretro/config.h @@ -574,3 +574,15 @@ /* Define to empty if the keyword `volatile' does not work. Warning: valid code using `volatile' can become incorrect without. Disable with care. */ /* #undef volatile */ + +#ifdef VITA + +#undef HAVE_CHMOD + +#undef HAVE_RMDIR + +#undef HAVE_GETCWD + +#undef HAVE_NANOSLEEP + +#endif