FileSystem: Move separator macro to path.h
This commit is contained in:
parent
babaffcce9
commit
350429466a
|
@ -16,14 +16,6 @@
|
||||||
|
|
||||||
class Error;
|
class Error;
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
#define FS_OSPATH_SEPARATOR_CHARACTER '\\'
|
|
||||||
#define FS_OSPATH_SEPARATOR_STR "\\"
|
|
||||||
#else
|
|
||||||
#define FS_OSPATH_SEPARATOR_CHARACTER '/'
|
|
||||||
#define FS_OSPATH_SEPARATOR_STR "/"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
enum FILESYSTEM_FILE_ATTRIBUTES
|
enum FILESYSTEM_FILE_ATTRIBUTES
|
||||||
{
|
{
|
||||||
FILESYSTEM_FILE_ATTRIBUTE_DIRECTORY = (1 << 0),
|
FILESYSTEM_FILE_ATTRIBUTE_DIRECTORY = (1 << 0),
|
||||||
|
|
|
@ -9,6 +9,14 @@
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#define FS_OSPATH_SEPARATOR_CHARACTER '\\'
|
||||||
|
#define FS_OSPATH_SEPARATOR_STR "\\"
|
||||||
|
#else
|
||||||
|
#define FS_OSPATH_SEPARATOR_CHARACTER '/'
|
||||||
|
#define FS_OSPATH_SEPARATOR_STR "/"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace Path {
|
namespace Path {
|
||||||
/// Converts any forward slashes to backslashes on Win32.
|
/// Converts any forward slashes to backslashes on Win32.
|
||||||
std::string ToNativePath(std::string_view path);
|
std::string ToNativePath(std::string_view path);
|
||||||
|
|
Loading…
Reference in New Issue