summaryrefslogtreecommitdiff
path: root/src/common/file_util.cpp
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2015-05-06 22:59:59 -0300
committerGravatar Yuri Kunde Schlesner2015-05-06 23:50:08 -0300
commitbf12f270b3c74f694c789a57cc69f414753ca080 (patch)
treea80e6ee9863a46966fe43496f1ccbbfa07cc98aa /src/common/file_util.cpp
parentClean-up includes (diff)
downloadyuzu-bf12f270b3c74f694c789a57cc69f414753ca080.tar.gz
yuzu-bf12f270b3c74f694c789a57cc69f414753ca080.tar.xz
yuzu-bf12f270b3c74f694c789a57cc69f414753ca080.zip
Common: Remove many unnecessary cross-platform compatibility macros
Diffstat (limited to '')
-rw-r--r--src/common/file_util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index 4ef4918d7..25d7d4b9f 100644
--- a/src/common/file_util.cpp
+++ b/src/common/file_util.cpp
@@ -589,7 +589,7 @@ std::string GetCurrentDir()
589{ 589{
590 char *dir; 590 char *dir;
591 // Get the current working directory (getcwd uses malloc) 591 // Get the current working directory (getcwd uses malloc)
592 if (!(dir = __getcwd(nullptr, 0))) { 592 if (!(dir = getcwd(nullptr, 0))) {
593 593
594 LOG_ERROR(Common_Filesystem, "GetCurrentDirectory failed: %s", 594 LOG_ERROR(Common_Filesystem, "GetCurrentDirectory failed: %s",
595 GetLastErrorMsg()); 595 GetLastErrorMsg());
@@ -603,7 +603,7 @@ std::string GetCurrentDir()
603// Sets the current directory to the given directory 603// Sets the current directory to the given directory
604bool SetCurrentDir(const std::string &directory) 604bool SetCurrentDir(const std::string &directory)
605{ 605{
606 return __chdir(directory.c_str()) == 0; 606 return chdir(directory.c_str()) == 0;
607} 607}
608 608
609#if defined(__APPLE__) 609#if defined(__APPLE__)