Use GetFileAttributes.

This commit is contained in:
Themaister 2012-01-05 17:41:04 +01:00
parent cee33327f8
commit 9747767474
2 changed files with 2 additions and 3 deletions

View File

@ -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
View File

@ -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)