From c4dc28319fbb4a9a6af018e4dd18b11e772880eb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 30 Dec 2020 00:21:50 +0100 Subject: [PATCH] Remove obsolete headers --- libretro-common/file/file_path.c | 4 -- libretro-common/file/file_path_io.c | 69 ++--------------------------- 2 files changed, 3 insertions(+), 70 deletions(-) diff --git a/libretro-common/file/file_path.c b/libretro-common/file/file_path.c index 6051da256438..d846c715b748 100644 --- a/libretro-common/file/file_path.c +++ b/libretro-common/file/file_path.c @@ -80,10 +80,6 @@ #include #endif -#if defined(VITA) -#define FIO_S_ISDIR SCE_S_ISDIR -#endif - #ifdef _WIN32 #include #else diff --git a/libretro-common/file/file_path_io.c b/libretro-common/file/file_path_io.c index 116f05f84f9c..acd6ab4e1ae4 100644 --- a/libretro-common/file/file_path_io.c +++ b/libretro-common/file/file_path_io.c @@ -31,60 +31,12 @@ #include #include #include -#include -#define VFS_FRONTEND -#include - -/* TODO: There are probably some unnecessary things on this huge include list now but I'm too afraid to touch it */ -#ifdef __APPLE__ -#include -#endif -#ifdef __HAIKU__ -#include -#endif -#ifndef __MACH__ #include #include -#endif -#include #include -#include - -#if defined(_WIN32) -#ifdef _MSC_VER -#define setmode _setmode -#endif -#include -#ifdef _XBOX -#include -#define INVALID_FILE_ATTRIBUTES -1 -#else -#include -#include -#include -#include -#if defined(_MSC_VER) && _MSC_VER <= 1200 -#define INVALID_FILE_ATTRIBUTES ((DWORD)-1) -#endif -#endif -#elif defined(VITA) -#define SCE_ERROR_ERRNO_EEXIST 0x80010011 -#include -#include -#include -#else -#include -#include -#include -#endif - -#if defined(PSP) -#include -#endif - -#if defined(VITA) -#define FIO_S_ISDIR SCE_S_ISDIR -#endif +#include +#define VFS_FRONTEND +#include #ifdef _WIN32 #include @@ -92,21 +44,6 @@ #include /* stat() is defined here */ #endif -#if !defined(RARCH_CONSOLE) && defined(RARCH_INTERNAL) -#ifdef __WINRT__ -#include -#endif -#endif - -/* Assume W-functions do not work below Win2K and Xbox platforms */ -#if defined(_WIN32_WINNT) && _WIN32_WINNT < 0x0500 || defined(_XBOX) - -#ifndef LEGACY_WIN32 -#define LEGACY_WIN32 -#endif - -#endif - /* TODO/FIXME - globals */ static retro_vfs_stat_t path_stat_cb = retro_vfs_stat_impl; static retro_vfs_mkdir_t path_mkdir_cb = retro_vfs_mkdir_impl;