diff options
author | 2016-06-25 10:05:59 +1000 | |
---|---|---|
committer | 2016-06-25 10:05:59 +1000 | |
commit | c33946ba0b0b9b18f21302fd60711a59314674c9 (patch) | |
tree | 48e43001af0df2a944082e60b6a69570d0d4ebfd /src/osd/modules/file/posixdir.cpp | |
parent | e363c5e154994dc647c7318cefa967f672663fb7 (diff) |
Fix path with missing return, hopefully fix OSX build (nw)
Diffstat (limited to 'src/osd/modules/file/posixdir.cpp')
-rw-r--r-- | src/osd/modules/file/posixdir.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/osd/modules/file/posixdir.cpp b/src/osd/modules/file/posixdir.cpp index 5b86a92444e..27e58cbae51 100644 --- a/src/osd/modules/file/posixdir.cpp +++ b/src/osd/modules/file/posixdir.cpp @@ -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) |