assetnameparser: Convert typdefs into using aliases

This commit is contained in:
Lioncash 2020-05-31 06:59:25 -04:00
parent 99dd875b43
commit e6aed18d59
1 changed files with 6 additions and 6 deletions

View File

@ -135,19 +135,19 @@ struct SAsset {
enum class FileLockType { None = 0, Read, Write }; enum class FileLockType { None = 0, Read, Write };
#if IS_UCS2 #if IS_UCS2
typedef wchar_t SystemChar; using SystemChar = wchar_t;
typedef std::wstring SystemString; using SystemString = std::wstring;
#ifndef _SYS_STR #ifndef _SYS_STR
#define _SYS_STR(val) L##val #define _SYS_STR(val) L##val
#endif #endif
typedef struct _stat Sstat; using Sstat = struct _stat;
#else #else
typedef char SystemChar; using SystemChar = char;
typedef std::string SystemString; using SystemString = std::string;
#ifndef _SYS_STR #ifndef _SYS_STR
#define _SYS_STR(val) val #define _SYS_STR(val) val
#endif #endif
typedef struct stat Sstat; using Sstat = struct stat;
#endif #endif
FILE* Fopen(const SystemChar* path, const SystemChar* mode, FileLockType lock = FileLockType::None) { FILE* Fopen(const SystemChar* path, const SystemChar* mode, FileLockType lock = FileLockType::None) {