Skip to content

Commit

Permalink
fix (unix compatibility): fixed getResourcesDirPath()
Browse files Browse the repository at this point in the history
  • Loading branch information
Ipagaxi committed Oct 31, 2024
1 parent da772f3 commit 2e51677
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Global/Utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ std::string getResourcesDirPath() {

#elif __linux__
#include <unistd.h>
#include <limits.h>

std::string getResourcesDirPath() {
char result[PATH_MAX];
Expand All @@ -21,6 +22,7 @@ std::string getResourcesDirPath() {

#elif __APPLE__
#include <mach-o/dyld.h>
#include <limits.h>

std::string getResourcesDirPath() {
char path[PATH_MAX];
Expand Down

0 comments on commit 2e51677

Please sign in to comment.