mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Platform (Windows): adds implementation of POSIX readlink(2) and realpath(3)
This commit is contained in:
@@ -13,3 +13,10 @@ static inline bool ffIsAbsolutePath(const char* path)
|
||||
return path[0] == '/';
|
||||
#endif
|
||||
}
|
||||
|
||||
#if _WIN32
|
||||
char* frealpath(void* __restrict hFile, char* __restrict resolved_name /*MAX_PATH*/);
|
||||
char* realpath(const char* __restrict file_name, char* __restrict resolved_name /*MAX_PATH*/);
|
||||
ssize_t freadlink(void* hFile, char* buf, size_t bufsiz);
|
||||
ssize_t readlink(const char* path, char* buf, size_t bufsiz);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user