diff --git a/libretro-common/file/file_path.c b/libretro-common/file/file_path.c index 8506cb3fab..1346fc2c76 100644 --- a/libretro-common/file/file_path.c +++ b/libretro-common/file/file_path.c @@ -48,38 +48,6 @@ #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 - #ifdef _WIN32 #include #else @@ -212,15 +180,11 @@ char *path_remove_extension(char *path) bool path_is_compressed_file(const char* path) { const char *ext = path_get_extension(path); - - if (string_is_empty(ext)) - return false; - - if (string_is_equal_noncase(ext, "zip") || - string_is_equal_noncase(ext, "apk") || - string_is_equal_noncase(ext, "7z")) - return true; - + if (!string_is_empty(ext)) + if ( string_is_equal_noncase(ext, "zip") || + string_is_equal_noncase(ext, "apk") || + string_is_equal_noncase(ext, "7z")) + return true; return false; }