Codechange: move definition of getcwd for Windows to where it is used

This commit is contained in:
Rubidium
2025-05-04 11:36:57 +02:00
committed by rubidium42
parent 6189bbc45a
commit 6817f52d9b
2 changed files with 3 additions and 2 deletions

View File

@@ -657,6 +657,9 @@ bool ExtractTar(const std::string &tar_filename, Subdirectory subdir)
* @note defined in the OS related files (win32.cpp, unix.cpp etc)
*/
extern void DetermineBasePaths(std::string_view exe);
/** Mimicks the getcwd from POSIX for Windows. */
char *getcwd(char *buf, size_t size);
#else /* defined(_WIN32) */
/**