mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-22 22:45:39 +00:00
Add UnixUnicodeToolShim.cpp
This is the counterpart to WindowsUnicodeToolShim.cpp for *nix systems.
This commit is contained in:
@@ -8,6 +8,7 @@ int mkdir_utf8(const char *path);
|
||||
void TerminateDirectoryPath(std::string &path);
|
||||
void ScanDirectoryForExtension(std::vector<std::string>& outPaths, const char *path, const char *ending, bool recursive);
|
||||
|
||||
#ifdef _WIN32
|
||||
struct DirectoryScanContext;
|
||||
struct DirectoryScanEntry
|
||||
{
|
||||
@@ -17,3 +18,11 @@ struct DirectoryScanEntry
|
||||
DirectoryScanContext *opendir_utf8(const char *name);
|
||||
DirectoryScanEntry *readdir_utf8(DirectoryScanContext *dir);
|
||||
void closedir_utf8(DirectoryScanContext *context);
|
||||
|
||||
#else
|
||||
|
||||
inline int _fseeki64(FILE *stream, long offset, int whence) {
|
||||
return fseek(stream, offset, whence);
|
||||
}
|
||||
inline long _ftelli64(FILE *stream) { return ftell(stream); };
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user