mirror of
https://github.com/azahar-emu/azahar.git
synced 2025-05-08 11:37:58 +03:00
Common: Remove many unnecessary cross-platform compatibility macros
This commit is contained in:
parent
c0eaa662d4
commit
bf12f270b3
8 changed files with 17 additions and 92 deletions
|
@ -589,7 +589,7 @@ std::string GetCurrentDir()
|
|||
{
|
||||
char *dir;
|
||||
// Get the current working directory (getcwd uses malloc)
|
||||
if (!(dir = __getcwd(nullptr, 0))) {
|
||||
if (!(dir = getcwd(nullptr, 0))) {
|
||||
|
||||
LOG_ERROR(Common_Filesystem, "GetCurrentDirectory failed: %s",
|
||||
GetLastErrorMsg());
|
||||
|
@ -603,7 +603,7 @@ std::string GetCurrentDir()
|
|||
// Sets the current directory to the given directory
|
||||
bool SetCurrentDir(const std::string &directory)
|
||||
{
|
||||
return __chdir(directory.c_str()) == 0;
|
||||
return chdir(directory.c_str()) == 0;
|
||||
}
|
||||
|
||||
#if defined(__APPLE__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue