From dc94407ece64f12b183a39bf24a112996bdd3c77 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 20 Dec 2020 00:33:04 +0100 Subject: [PATCH] Update --- deps/flac-1.3.3/include/share/compat.h | 2 +- libretro-common/file/file_path.c | 6 +-- libretro-common/include/libretro.h | 2 +- libretro-common/include/memmap.h | 2 +- libretro-common/include/retro_miscellaneous.h | 8 +-- libretro-common/include/retro_timers.h | 8 +-- libretro-common/vfs/vfs_implementation.c | 50 ++----------------- 7 files changed, 10 insertions(+), 68 deletions(-) diff --git a/deps/flac-1.3.3/include/share/compat.h b/deps/flac-1.3.3/include/share/compat.h index 51f54ef..f8dc46b 100644 --- a/deps/flac-1.3.3/include/share/compat.h +++ b/deps/flac-1.3.3/include/share/compat.h @@ -46,7 +46,7 @@ # include #endif -#if defined(__CELLOS_LV2__) +#if defined(__PSL1GHT__) #define fseek_wrap fseek #define ftell_wrap ftell #elif defined _MSC_VER || defined __BORLANDC__ || defined __MINGW32__ diff --git a/libretro-common/file/file_path.c b/libretro-common/file/file_path.c index 3dd53c9..44ceb72 100644 --- a/libretro-common/file/file_path.c +++ b/libretro-common/file/file_path.c @@ -80,15 +80,11 @@ #include #endif -#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__) -#include -#endif - #if defined(VITA) #define FIO_S_ISDIR SCE_S_ISDIR #endif -#if (defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)) || defined(__QNX__) || defined(PSP) +#if defined(__QNX__) || defined(PSP) #include /* stat() is defined here */ #endif diff --git a/libretro-common/include/libretro.h b/libretro-common/include/libretro.h index 59bd513..d843114 100644 --- a/libretro-common/include/libretro.h +++ b/libretro-common/include/libretro.h @@ -69,7 +69,7 @@ extern "C" { # endif # endif # else -# if defined(__GNUC__) && __GNUC__ >= 4 && !defined(__CELLOS_LV2__) +# if defined(__GNUC__) && __GNUC__ >= 4 # define RETRO_API RETRO_CALLCONV __attribute__((__visibility__("default"))) # else # define RETRO_API RETRO_CALLCONV diff --git a/libretro-common/include/memmap.h b/libretro-common/include/memmap.h index 75a85f3..ebbc307 100644 --- a/libretro-common/include/memmap.h +++ b/libretro-common/include/memmap.h @@ -26,7 +26,7 @@ #include #include -#if defined(__CELLOS_LV2__) || defined(PSP) || defined(PS2) || defined(GEKKO) || defined(VITA) || defined(_XBOX) || defined(_3DS) || defined(WIIU) || defined(SWITCH) || defined(HAVE_LIBNX) +#if defined(PSP) || defined(PS2) || defined(GEKKO) || defined(VITA) || defined(_XBOX) || defined(_3DS) || defined(WIIU) || defined(SWITCH) || defined(HAVE_LIBNX) /* No mman available */ #elif defined(_WIN32) && !defined(_XBOX) #include diff --git a/libretro-common/include/retro_miscellaneous.h b/libretro-common/include/retro_miscellaneous.h index 1936ac7..5eede75 100644 --- a/libretro-common/include/retro_miscellaneous.h +++ b/libretro-common/include/retro_miscellaneous.h @@ -43,10 +43,6 @@ #endif -#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__) -#include -#endif - #include #ifdef _MSC_VER @@ -79,9 +75,7 @@ static INLINE bool bits_any_set(uint32_t* ptr, uint32_t count) } #ifndef PATH_MAX_LENGTH -#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__) -#define PATH_MAX_LENGTH CELL_FS_MAX_FS_PATH_LENGTH -#elif defined(_XBOX1) || defined(_3DS) || defined(PSP) || defined(PS2) || defined(GEKKO)|| defined(WIIU) || defined(ORBIS) +#if defined(_XBOX1) || defined(_3DS) || defined(PSP) || defined(PS2) || defined(GEKKO)|| defined(WIIU) || defined(ORBIS) #define PATH_MAX_LENGTH 512 #else #define PATH_MAX_LENGTH 4096 diff --git a/libretro-common/include/retro_timers.h b/libretro-common/include/retro_timers.h index 99b7575..61456d3 100644 --- a/libretro-common/include/retro_timers.h +++ b/libretro-common/include/retro_timers.h @@ -25,9 +25,7 @@ #include -#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__) -#include -#elif defined(XENON) +#if defined(XENON) #include