diff --git a/src/common/file_system.h b/src/common/file_system.h index 1d46d2897..3396f1307 100644 --- a/src/common/file_system.h +++ b/src/common/file_system.h @@ -16,14 +16,6 @@ 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 { FILESYSTEM_FILE_ATTRIBUTE_DIRECTORY = (1 << 0), diff --git a/src/common/path.h b/src/common/path.h index c39bb05b6..0e2c7827c 100644 --- a/src/common/path.h +++ b/src/common/path.h @@ -9,6 +9,14 @@ #include #include +#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 { /// Converts any forward slashes to backslashes on Win32. std::string ToNativePath(std::string_view path);