1
0
Fork 0

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

pull/14211/head
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) */
/**

View File

@ -157,8 +157,6 @@ using namespace std::literals::string_view_literals;
#if !defined(STRGEN) && !defined(SETTINGSGEN)
# if defined(_WIN32)
char *getcwd(char *buf, size_t size);
std::string FS2OTTD(std::wstring_view name);
std::wstring OTTD2FS(std::string_view name);
# elif defined(WITH_ICONV)