mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Define abstractions for cross platform file operations with wide char.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
parent
b152b39e67
commit
201d0ec97c
1 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ typedef struct stat csync_stat_t;
|
|||
#define _UNICODE
|
||||
|
||||
#if defined _WIN32 && defined _UNICODE
|
||||
typedef wchar_t _TCHAR;
|
||||
typedef wchar_t mbchar_t;
|
||||
#define _tcslen wcslen
|
||||
#define _topen _wopen
|
||||
#define _tdirent _wdirent
|
||||
|
@ -91,7 +91,7 @@ typedef wchar_t _TCHAR;
|
|||
#define _tchmod _wchmod
|
||||
#define _trewinddir _wrewinddir
|
||||
#else
|
||||
typedef char _TCHAR;
|
||||
typedef char mbchar_t;
|
||||
#define _tdirent dirent
|
||||
#define _tcslen strlen
|
||||
#define _topen open
|
||||
|
|
Loading…
Reference in a new issue