mirror of
https://github.com/holub/mame
synced 2025-06-29 23:48:56 +03:00
Fix path with missing return, hopefully fix OSX build (nw)
This commit is contained in:
parent
e363c5e154
commit
c33946ba0b
@ -39,6 +39,10 @@
|
||||
|
||||
#undef _POSIX_C_SOURCE // to get DT_xxx on OS X
|
||||
|
||||
// #include this stuff before something else can #define _POSIX_C_SOURCE again
|
||||
#include <dirent.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "osdcore.h"
|
||||
#include "modules/lib/osdlib.h"
|
||||
@ -51,10 +55,6 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include <dirent.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
|
||||
|
||||
namespace osd {
|
||||
@ -65,10 +65,8 @@ namespace {
|
||||
|
||||
#if defined(WIN32)
|
||||
constexpr char PATHSEPCH = '\\';
|
||||
constexpr char INVPATHSEPCH = '/';
|
||||
#else
|
||||
constexpr char PATHSEPCH = '/';
|
||||
//constexpr char INVPATHSEPCH = '\\';
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__DragonFly__) || defined(EMSCRIPTEN) || defined(__ANDROID__) || defined(WIN32) || defined(SDLMAME_NO64BITIO)
|
||||
|
@ -127,8 +127,7 @@ bool win_directory::open(std::string const &dirname)
|
||||
|
||||
// attempt to find the first file
|
||||
m_find = FindFirstFileEx(dirfilter.get(), FindExInfoStandard, &m_data, FindExSearchNameMatch, nullptr, 0);
|
||||
if (m_find == INVALID_HANDLE_VALUE)
|
||||
return false;
|
||||
return m_find != INVALID_HANDLE_VALUE;
|
||||
}
|
||||
|
||||
} // anonymous namespace
|
||||
|
Loading…
Reference in New Issue
Block a user