From 350429466aeefc8ba4305e45b67ca9b6d9b22410 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 14 Nov 2024 00:07:58 +1000 Subject: [PATCH] FileSystem: Move separator macro to path.h --- src/common/file_system.h | 8 -------- src/common/path.h | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) 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);