mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-04 09:03:24 +00:00
Use GetFileAttributes.
This commit is contained in:
parent
cee33327f8
commit
9747767474
@ -29,7 +29,7 @@ endif
|
||||
|
||||
libsnes ?= -lsnes
|
||||
|
||||
LIBS = -lm -lshlwapi
|
||||
LIBS = -lm
|
||||
DEFINES = -I. -DHAVE_CONFIGFILE -DPACKAGE_VERSION=\"0.9.3\"
|
||||
LDFLAGS = -L. -static-libgcc
|
||||
LDCXXFLAGS = -static-libstdc++ -s
|
||||
|
3
file.c
3
file.c
@ -36,7 +36,6 @@
|
||||
#include <io.h>
|
||||
#include <fcntl.h>
|
||||
#include <windows.h>
|
||||
#include <shlwapi.h>
|
||||
#ifdef _MSC_VER
|
||||
#define setmode _setmode
|
||||
#endif
|
||||
@ -937,7 +936,7 @@ void dir_list_free(char **dir_list)
|
||||
bool path_is_directory(const char *path)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
return PathIsDirectory(path) == FILE_ATTRIBUTE_DIRECTORY;
|
||||
return GetFileAttributes(path) == FILE_ATTRIBUTE_DIRECTORY;
|
||||
#elif defined(__CELLOS_LV2__)
|
||||
return false; // STUB
|
||||
#elif defined(XENON)
|
||||
|
Loading…
Reference in New Issue
Block a user