mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix build on OS X (Thanks neoascetic)
This commit is contained in:
parent
3d4244cc75
commit
a443a13a9d
1 changed files with 2 additions and 1 deletions
|
@ -388,7 +388,8 @@ bool getCurrentExecPath(char *buf, size_t len)
|
||||||
|
|
||||||
bool getCurrentExecPath(char *buf, size_t len)
|
bool getCurrentExecPath(char *buf, size_t len)
|
||||||
{
|
{
|
||||||
if (_NSGetExecutablePath(buf, &len) == -1)
|
uint32_t lenb = (uint32_t)len;
|
||||||
|
if (_NSGetExecutablePath(buf, &lenb) == -1)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue