Cleanup of Mac code
This commit is contained in:
parent
e2a9cf05ac
commit
22dc083283
|
@ -74,10 +74,8 @@ int main(int argc, const char** argv)
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
uint32_t length = sizeof(basePath);
|
uint32_t length = sizeof(basePath);
|
||||||
|
|
||||||
if (_NSGetExecutablePath(basePath, &length) != 0) {
|
_NSGetExecutablePath(basePath, &length);
|
||||||
// Buffer size is too small.
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
int length = readlink("/proc/self/exe", basePath, sizeof(basePath));
|
int length = readlink("/proc/self/exe", basePath, sizeof(basePath));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue