Get rid of stdstring.h dependency for file_path.c

This commit is contained in:
twinaphex 2017-06-28 04:44:33 +02:00
parent b11620e1eb
commit e1041030a2
1 changed files with 4 additions and 5 deletions

View File

@ -37,7 +37,6 @@
#endif #endif
#include <compat/strcasestr.h> #include <compat/strcasestr.h>
#include <retro_miscellaneous.h> #include <retro_miscellaneous.h>
#include <string/stdstring.h>
#if defined(_WIN32) #if defined(_WIN32)
#ifdef _MSC_VER #ifdef _MSC_VER
@ -242,7 +241,7 @@ bool path_mkdir(const char *dir)
return false; return false;
path_parent_dir(basedir); path_parent_dir(basedir);
if (!*basedir || string_is_equal(basedir, dir)) if (!*basedir || !strcmp(basedir, dir))
goto end; goto end;
if (path_is_directory(basedir)) if (path_is_directory(basedir))
@ -353,9 +352,9 @@ bool path_is_compressed_file(const char* path)
{ {
const char *ext = path_get_extension(path); const char *ext = path_get_extension(path);
if ( string_is_equal_noncase(ext, "zip") if ( strcasestr(ext, "zip")
|| string_is_equal_noncase(ext, "apk") || strcasestr(ext, "apk")
|| string_is_equal_noncase(ext, "7z")) || strcasestr(ext, "7z"))
return true; return true;
return false; return false;