mirror of https://github.com/OpenTTD/OpenTTD
Codechange: move definition of getcwd for Windows to where it is used
parent
6189bbc45a
commit
6817f52d9b
|
@ -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)
|
* @note defined in the OS related files (win32.cpp, unix.cpp etc)
|
||||||
*/
|
*/
|
||||||
extern void DetermineBasePaths(std::string_view exe);
|
extern void DetermineBasePaths(std::string_view exe);
|
||||||
|
|
||||||
|
/** Mimicks the getcwd from POSIX for Windows. */
|
||||||
|
char *getcwd(char *buf, size_t size);
|
||||||
#else /* defined(_WIN32) */
|
#else /* defined(_WIN32) */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -157,8 +157,6 @@ using namespace std::literals::string_view_literals;
|
||||||
|
|
||||||
#if !defined(STRGEN) && !defined(SETTINGSGEN)
|
#if !defined(STRGEN) && !defined(SETTINGSGEN)
|
||||||
# if defined(_WIN32)
|
# if defined(_WIN32)
|
||||||
char *getcwd(char *buf, size_t size);
|
|
||||||
|
|
||||||
std::string FS2OTTD(std::wstring_view name);
|
std::string FS2OTTD(std::wstring_view name);
|
||||||
std::wstring OTTD2FS(std::string_view name);
|
std::wstring OTTD2FS(std::string_view name);
|
||||||
# elif defined(WITH_ICONV)
|
# elif defined(WITH_ICONV)
|
||||||
|
|
Loading…
Reference in New Issue